diff options
author | Suhas Daftuar <sdaftuar@gmail.com> | 2015-05-01 14:47:21 -0400 |
---|---|---|
committer | Suhas Daftuar <sdaftuar@gmail.com> | 2015-05-01 15:32:24 -0400 |
commit | 574db4816fd340b57970760ec30f4c8d6234187f (patch) | |
tree | 205d7b6e4e39471b581e7e3f6533699a8d5c0c45 /qa/pull-tester/rpc-tests.sh | |
parent | 5487975ca3e26e959a815679ba326fb33d6baf8d (diff) |
Fix potential race conditions in p2p testing framework
Previously, each NodeConnCB had its own lock to synchronize data structures
used by the testing thread and the networking thread, and NodeConn provided a
separate additional lock for synchronizing access to each send buffer. This
commit replaces those locks with a single global lock (mininode_lock) that we
use to synchronize access to all data structures shared by the two threads.
Updates comptool and maxblocksinflight to use the new synchronization
semantics, eliminating previous race conditions within comptool, and re-enables
invalidblockrequest.py in travis.
Diffstat (limited to 'qa/pull-tester/rpc-tests.sh')
-rwxr-xr-x | qa/pull-tester/rpc-tests.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/pull-tester/rpc-tests.sh b/qa/pull-tester/rpc-tests.sh index 840addb251..ae27a94b8d 100755 --- a/qa/pull-tester/rpc-tests.sh +++ b/qa/pull-tester/rpc-tests.sh @@ -31,7 +31,7 @@ testScripts=( 'merkle_blocks.py' # 'forknotify.py' 'maxblocksinflight.py' -# 'invalidblockrequest.py' + 'invalidblockrequest.py' ); if [ "x${ENABLE_BITCOIND}${ENABLE_UTILS}${ENABLE_WALLET}" = "x111" ]; then for (( i = 0; i < ${#testScripts[@]}; i++ )) |