From 62068381a3b9c065d81300be79abba7aecfdb41b Mon Sep 17 00:00:00 2001 From: John Newbery Date: Fri, 5 Jun 2020 11:01:54 -0400 Subject: [PATCH] [tests] Make mininode_lock non-reentrant There's no need for mininode_lock to be reentrant. Use a simpler non-recursive lock. --- test/functional/test_framework/mininode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/test_framework/mininode.py b/test/functional/test_framework/mininode.py index a2c695a7049..b6c37bc7e06 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):