mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
Merge pull request #6465
56b28fc
Don't share objects between TestInstances (Casey Rodarmor)
This commit is contained in:
commit
410fd7448a
1 changed files with 2 additions and 2 deletions
|
@ -122,8 +122,8 @@ class TestNode(NodeConnCB):
|
|||
# or false, then only the last tx is tested against outcome.)
|
||||
|
||||
class TestInstance(object):
|
||||
def __init__(self, objects=[], sync_every_block=True, sync_every_tx=False):
|
||||
self.blocks_and_transactions = objects
|
||||
def __init__(self, objects=None, sync_every_block=True, sync_every_tx=False):
|
||||
self.blocks_and_transactions = objects if objects else []
|
||||
self.sync_every_block = sync_every_block
|
||||
self.sync_every_tx = sync_every_tx
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue