mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-06 02:38:11 +01:00
MSG3L
Debug mode is disabled by default.
This commit is contained in:
@@ -10,11 +10,15 @@ from .contrib.test_framework.messages import (
|
||||
)
|
||||
|
||||
from .interface_btc import BTCInterface
|
||||
from .chainparams import CoinInterface
|
||||
from .chainparams import CoinInterface, Coins
|
||||
from .rpc import make_rpc_func
|
||||
|
||||
|
||||
class PARTInterface(BTCInterface):
|
||||
@staticmethod
|
||||
def coin_type():
|
||||
return Coins.PART
|
||||
|
||||
@staticmethod
|
||||
def witnessScaleFactor():
|
||||
return 2
|
||||
@@ -23,9 +27,10 @@ class PARTInterface(BTCInterface):
|
||||
def txVersion():
|
||||
return 0xa0
|
||||
|
||||
def __init__(self, coin_settings):
|
||||
def __init__(self, coin_settings, network):
|
||||
self.rpc_callback = make_rpc_func(coin_settings['rpcport'], coin_settings['rpcauth'])
|
||||
self.txoType = CTxOutPart
|
||||
self._network = network
|
||||
|
||||
def getNewAddress(self, use_segwit):
|
||||
return self.rpc_callback('getnewaddress', ['swap_receive'])
|
||||
|
||||
Reference in New Issue
Block a user