diff options
author | John Newbery <john@johnnewbery.com> | 2020-06-05 11:01:54 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2020-06-05 11:01:54 -0400 |
commit | 62068381a3b9c065d81300be79abba7aecfdb41b (patch) | |
tree | 472d387b7d78872dd20cdbd42149c0ced35e7df8 /test/functional/test_framework | |
parent | c67c1f2c032a8efa141d776a7e5be58f052159ea (diff) | |
download | bitcoin-62068381a3b9c065d81300be79abba7aecfdb41b.tar.xz |
[tests] Make mininode_lock non-reentrant
There's no need for mininode_lock to be reentrant.
Use a simpler non-recursive lock.
Diffstat (limited to 'test/functional/test_framework')
-rwxr-xr-x | test/functional/test_framework/mininode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/test_framework/mininode.py b/test/functional/test_framework/mininode.py index a2c695a704..b6c37bc7e0 100755 --- a/test/functional/test_framework/mininode.py +++ b/test/functional/test_framework/mininode.py @@ -492,7 +492,7 @@ class P2PInterface(P2PConnection): # P2PConnection acquires this lock whenever delivering a message to a P2PInterface. # This lock should be acquired in the thread running the test logic to synchronize # access to any data shared with the P2PInterface or P2PConnection. -mininode_lock = threading.RLock() +mininode_lock = threading.Lock() class NetworkThread(threading.Thread): |