aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/forknotify.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2016-10-11 11:54:57 +0200
committerMarcoFalke <falke.marco@gmail.com>2016-10-11 11:55:28 +0200
commit94688d8e43e70f0d5c6ce3f5b6e1bb062ee4540a (patch)
tree6dd0c06fde7c8e166ea1bb8f284c6266a72c5767 /qa/rpc-tests/forknotify.py
parenta916677ace1c214f1c87f3a383cdc0d38dee8831 (diff)
parent5e0dd9e07c02422a263cc14a173d4ee21a7c1393 (diff)
downloadbitcoin-94688d8e43e70f0d5c6ce3f5b6e1bb062ee4540a.tar.xz
Merge #8866: [0.13] Backports
5e0dd9e [Doc] Update bips.md for Segregated Witness (fanquake) d6c83b9 [qa] Fix race condition in sendheaders.py (Suhas Daftuar) b73f065 [qa] Another attempt to fix race condition in p2p-compactblocks.py (Suhas Daftuar) b987348 Bugfix: Trivial: RPC: getblockchaininfo help: pruneheight is the lowest, not highest, block (Luke Dashjr) cbc3fe5 test: Explicitly set encoding to utf8 when opening text files (Wladimir J. van der Laan) 0bee740 [qa] util: Move wait_bitcoinds() into stop_nodes() (MarcoFalke) 794b007 [qa] Add getinfo smoke tests and rework versionbits test (MarcoFalke) 1f60d45 [qa] mininode: Only allow named args in wait_until (MarcoFalke) 624a007 [qa] Fix race condition in p2p-compactblocks test (Suhas Daftuar) 3e4abb5 Fix nulldummy.py test (Johnson Lau) 31ab2f8 test: Avoid ConnectionResetErrors during RPC tests (Wladimir J. van der Laan) eb18cc1 bitcoin-util-test.py should fail if the output file is empty (jnewbery) d87227d [qa] nulldummy: Don't run unused code (MarcoFalke) 1dd1783 [qa] blockstore: Switch to dumb dbm (MarcoFalke) 83ad563 [rpc] throw JSONRPCError when utxo set can not be read (MarcoFalke) 6288659 [Wallet] remove "unused" ThreadFlushWalletDB from removeprunedfunds (Jonas Schnelli) 2a8bca4 Add bitcoin-tx JSON tests (jnewbery) 9bbe66e [qa] Split up slow RPC calls to avoid pruning test timeouts (Suhas Daftuar) 375437c Ping regularly in p2p-segwit.py to keep connection alive (Johnson Lau)
Diffstat (limited to 'qa/rpc-tests/forknotify.py')
-rwxr-xr-xqa/rpc-tests/forknotify.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/qa/rpc-tests/forknotify.py b/qa/rpc-tests/forknotify.py
index 5a3f75c808..a1901aedab 100755
--- a/qa/rpc-tests/forknotify.py
+++ b/qa/rpc-tests/forknotify.py
@@ -22,7 +22,7 @@ class ForkNotifyTest(BitcoinTestFramework):
def setup_network(self):
self.nodes = []
self.alert_filename = os.path.join(self.options.tmpdir, "alert.txt")
- with open(self.alert_filename, 'w') as f:
+ with open(self.alert_filename, 'w', encoding='utf8') as f:
pass # Just open then close to create zero-length file
self.nodes.append(start_node(0, self.options.tmpdir,
["-blockversion=2", "-alertnotify=echo %s >> \"" + self.alert_filename + "\""]))
@@ -44,7 +44,7 @@ class ForkNotifyTest(BitcoinTestFramework):
self.nodes[1].generate(1)
self.sync_all()
- with open(self.alert_filename, 'r') as f:
+ with open(self.alert_filename, 'r', encoding='utf8') as f:
alert_text = f.read()
if len(alert_text) == 0:
@@ -56,7 +56,7 @@ class ForkNotifyTest(BitcoinTestFramework):
self.nodes[1].generate(1)
self.sync_all()
- with open(self.alert_filename, 'r') as f:
+ with open(self.alert_filename, 'r', encoding='utf8') as f:
alert_text2 = f.read()
if alert_text != alert_text2: