2018-12-18 12:00:46 -08:00
|
|
|
#!/usr/bin/env python
|
2018-10-18 14:37:58 -07:00
|
|
|
# Copyright (c) 2018 The Zcash developers
|
2018-10-18 10:13:51 -07:00
|
|
|
# Distributed under the MIT software license, see the accompanying
|
2019-07-18 07:16:09 -07:00
|
|
|
# file COPYING or https://www.opensource.org/licenses/mit-license.php .
|
2018-10-18 10:13:51 -07:00
|
|
|
|
2018-12-18 12:00:46 -08:00
|
|
|
import sys; assert sys.version_info < (3,), ur"This script does not run under Python 3. Please use Python 2.7.x."
|
|
|
|
|
2018-10-18 10:13:51 -07:00
|
|
|
from test_framework.test_framework import BitcoinTestFramework
|
|
|
|
from mergetoaddress_helper import MergeToAddressHelper
|
|
|
|
|
|
|
|
|
|
|
|
class MergeToAddressSapling (BitcoinTestFramework):
|
2018-10-18 14:37:58 -07:00
|
|
|
# 13505 would be the maximum number of utxos based on the transaction size limits for Sapling
|
|
|
|
# but testing this causes the test to take an indeterminately long time to run.
|
2019-07-19 05:10:13 -07:00
|
|
|
helper = MergeToAddressHelper('sapling', 'ANY_SAPLING', 800, 800, 0)
|
2018-10-18 10:13:51 -07:00
|
|
|
|
|
|
|
def setup_chain(self):
|
|
|
|
self.helper.setup_chain(self)
|
|
|
|
|
|
|
|
def setup_network(self, split=False):
|
2019-07-19 05:10:13 -07:00
|
|
|
self.helper.setup_network(self)
|
2018-10-18 10:13:51 -07:00
|
|
|
|
|
|
|
def run_test(self):
|
2018-10-18 14:37:58 -07:00
|
|
|
self.helper.run_test(self)
|
2018-10-18 10:13:51 -07:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
MergeToAddressSapling().main()
|