@@ -48,9 +48,9 @@ def run_test(self):
48
48
ip_port = "127.0.0.1:{}" .format (p2p_port (1 ))
49
49
self .replaceinconfig (1 , "bind=127.0.0.1" , "whitebind=bloomfilter,forcerelay@" + ip_port )
50
50
self .checkpermission (
51
-
51
+
52
52
# Check parameter interaction forcerelay should activate relay
53
- ["noban" , "bloomfilter" , "forcerelay" , "relay" ],
53
+ ["noban" , "bloomfilter" , "forcerelay" , "relay" ],
54
54
False )
55
55
self .replaceinconfig (1 , "whitebind=bloomfilter,forcerelay@" + ip_port , "bind=127.0.0.1" )
56
56
@@ -95,9 +95,10 @@ def checkpermission(self, args, expectedPermissions, whitelisted):
95
95
96
96
def replaceinconfig (self , nodeid , old , new ):
97
97
with open (self .nodes [nodeid ].bitcoinconf , encoding = "utf8" ) as f :
98
- newText = f .read ().replace (old , new )
98
+ newText = f .read ().replace (old , new )
99
99
with open (self .nodes [nodeid ].bitcoinconf , 'w' , encoding = "utf8" ) as f :
100
100
f .write (newText )
101
101
102
+
102
103
if __name__ == '__main__' :
103
104
P2PPermissionsTests ().main ()
0 commit comments