2021-01-26 19:25:33 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# Copyright (c) 2021 tecnovert
|
|
|
|
# Distributed under the MIT software license, see the accompanying
|
|
|
|
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2022-08-08 22:10:37 +00:00
|
|
|
from .btc import BTCInterface
|
|
|
|
from basicswap.contrib.test_framework.messages import (
|
2021-01-26 19:25:33 +00:00
|
|
|
CTxOut)
|
|
|
|
|
|
|
|
|
2021-02-04 22:42:15 +00:00
|
|
|
class PassthroughBTCInterface(BTCInterface):
|
2021-01-26 19:25:33 +00:00
|
|
|
def __init__(self, coin_settings, network):
|
|
|
|
super().__init__(coin_settings, network)
|
|
|
|
self.txoType = CTxOut
|
|
|
|
self._network = network
|
|
|
|
self.blocks_confirmed = coin_settings['blocks_confirmed']
|
|
|
|
self.setConfTarget(coin_settings['conf_target'])
|