Skip to content

Commit

Permalink
Merge pull request #6544 from drew2a/fix/6273
Browse files Browse the repository at this point in the history
Apply MockIPv8 key injection
  • Loading branch information
drew2a authored Nov 11, 2021
2 parents 607b0d0 + 600dc56 commit 4116800
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ def create_node(self):
db = BandwidthDatabase(db_path=MEMORY_DB, my_pub_key=peer.public_key.key_to_bin())
ipv8 = MockIPv8(peer, BandwidthAccountingCommunity, database=db,
settings=BandwidthAccountingSettings())
community = ipv8.get_overlay(BandwidthAccountingCommunity)
# Dumb workaround for MockIPv8 not supporting key injection
community.database.my_pub_key = ipv8.my_peer.public_key.key_to_bin()
return ipv8

async def test_single_transaction(self):
Expand Down

0 comments on commit 4116800

Please sign in to comment.