diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-01-22 15:36:44 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-01-23 09:00:20 -0500 |
commit | fa6b57bcaaf4dc65d78316353033b03d171a3beb (patch) | |
tree | 1d2acb9b54c40f93728ec2f39f5ccec887a71e1b | |
parent | faf40810d7b7f42f3588bfa8a663095aa24001b1 (diff) | |
download | bitcoin-fa6b57bcaaf4dc65d78316353033b03d171a3beb.tar.xz |
test: Fix whitespace in p2p_permissions.py
-rwxr-xr-x | test/functional/p2p_permissions.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/p2p_permissions.py b/test/functional/p2p_permissions.py index 37101d6143..fd38201621 100755 --- a/test/functional/p2p_permissions.py +++ b/test/functional/p2p_permissions.py @@ -48,9 +48,9 @@ class P2PPermissionsTests(BitcoinTestFramework): ip_port = "127.0.0.1:{}".format(p2p_port(1)) self.replaceinconfig(1, "bind=127.0.0.1", "whitebind=bloomfilter,forcerelay@" + ip_port) self.checkpermission( - ["-whitelist=noban@127.0.0.1" ], + ["-whitelist=noban@127.0.0.1"], # Check parameter interaction forcerelay should activate relay - ["noban", "bloomfilter", "forcerelay", "relay" ], + ["noban", "bloomfilter", "forcerelay", "relay"], False) self.replaceinconfig(1, "whitebind=bloomfilter,forcerelay@" + ip_port, "bind=127.0.0.1") @@ -95,9 +95,10 @@ class P2PPermissionsTests(BitcoinTestFramework): def replaceinconfig(self, nodeid, old, new): with open(self.nodes[nodeid].bitcoinconf, encoding="utf8") as f: - newText=f.read().replace(old, new) + newText = f.read().replace(old, new) with open(self.nodes[nodeid].bitcoinconf, 'w', encoding="utf8") as f: f.write(newText) + if __name__ == '__main__': P2PPermissionsTests().main() |