Host-customized fork of https://github.com/tecnovert/basicswap/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
722 B
29 lines
722 B
4 years ago
|
#!/usr/bin/env python
|
||
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
# Copyright (c) 2020 tecnovert
|
||
|
# Distributed under the MIT software license, see the accompanying
|
||
|
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
|
||
|
|
||
|
from .contrib.test_framework.messages import (
|
||
|
CTxOutPart,
|
||
|
)
|
||
|
|
||
|
from .interface_btc import BTCInterface
|
||
|
from .chainparams import CoinInterface
|
||
|
from .rpc import make_rpc_func
|
||
|
|
||
|
|
||
|
class PARTInterface(BTCInterface):
|
||
|
@staticmethod
|
||
|
def witnessScaleFactor():
|
||
|
return 2
|
||
|
|
||
|
@staticmethod
|
||
|
def txVersion():
|
||
|
return 0xa0
|
||
|
|
||
|
def __init__(self, coin_settings):
|
||
|
self.rpc_callback = make_rpc_func(coin_settings['rpcport'], coin_settings['rpcauth'])
|
||
|
self.txoType = CTxOutPart
|