Reflect this change on datalayer related code.

This commit is contained in:
Amine Khaldi 2022-07-23 19:56:57 +01:00
parent 9216b0e019
commit e9705c43d2
No known key found for this signature in database
GPG Key ID: B1C074FFC904E2D9
3 changed files with 0 additions and 24 deletions

View File

@ -85,7 +85,6 @@ async def test_create_insert_get(one_wallet_node_and_rpc: nodes_with_port, bt: B
num_blocks = 15
assert wallet_node.server
await wallet_node.server.start_client(PeerInfo("localhost", uint16(full_node_api.server._port)), None)
assert wallet_node.wallet_state_manager is not None
ph = await wallet_node.wallet_state_manager.main_wallet.get_new_puzzlehash()
for i in range(0, num_blocks):
await full_node_api.farm_new_transaction_block(FarmNewBlockProtocol(ph))
@ -154,7 +153,6 @@ async def test_upsert(one_wallet_node_and_rpc: nodes_with_port, bt: BlockTools,
num_blocks = 15
assert wallet_node.server
await wallet_node.server.start_client(PeerInfo("localhost", uint16(full_node_api.server._port)), None)
assert wallet_node.wallet_state_manager is not None
ph = await wallet_node.wallet_state_manager.main_wallet.get_new_puzzlehash()
for i in range(0, num_blocks):
await full_node_api.farm_new_transaction_block(FarmNewBlockProtocol(ph))
@ -200,7 +198,6 @@ async def test_create_double_insert(one_wallet_node_and_rpc: nodes_with_port, bt
num_blocks = 15
assert wallet_node.server
await wallet_node.server.start_client(PeerInfo("localhost", uint16(full_node_api.server._port)), None)
assert wallet_node.wallet_state_manager is not None
ph = await wallet_node.wallet_state_manager.main_wallet.get_new_puzzlehash()
for i in range(0, num_blocks):
await full_node_api.farm_new_transaction_block(FarmNewBlockProtocol(ph))
@ -262,7 +259,6 @@ async def test_keys_values_ancestors(one_wallet_node_and_rpc: nodes_with_port, b
num_blocks = 15
assert wallet_node.server
await wallet_node.server.start_client(PeerInfo("localhost", uint16(full_node_api.server._port)), None)
assert wallet_node.wallet_state_manager is not None
ph = await wallet_node.wallet_state_manager.main_wallet.get_new_puzzlehash()
for i in range(0, num_blocks):
await full_node_api.farm_new_transaction_block(FarmNewBlockProtocol(ph))
@ -347,7 +343,6 @@ async def test_get_roots(one_wallet_node_and_rpc: nodes_with_port, bt: BlockTool
num_blocks = 15
assert wallet_node.server
await wallet_node.server.start_client(PeerInfo("localhost", uint16(full_node_api.server._port)), None)
assert wallet_node.wallet_state_manager is not None
ph = await wallet_node.wallet_state_manager.main_wallet.get_new_puzzlehash()
for i in range(0, num_blocks):
await full_node_api.farm_new_transaction_block(FarmNewBlockProtocol(ph))
@ -422,7 +417,6 @@ async def test_get_root_history(one_wallet_node_and_rpc: nodes_with_port, bt: Bl
num_blocks = 15
assert wallet_node.server
await wallet_node.server.start_client(PeerInfo("localhost", uint16(full_node_api.server._port)), None)
assert wallet_node.wallet_state_manager is not None
ph = await wallet_node.wallet_state_manager.main_wallet.get_new_puzzlehash()
for i in range(0, num_blocks):
await full_node_api.farm_new_transaction_block(FarmNewBlockProtocol(ph))
@ -500,7 +494,6 @@ async def test_get_kv_diff(one_wallet_node_and_rpc: nodes_with_port, bt: BlockTo
num_blocks = 15
assert wallet_node.server
await wallet_node.server.start_client(PeerInfo("localhost", uint16(full_node_api.server._port)), None)
assert wallet_node.wallet_state_manager is not None
ph = await wallet_node.wallet_state_manager.main_wallet.get_new_puzzlehash()
for i in range(0, num_blocks):
await full_node_api.farm_new_transaction_block(FarmNewBlockProtocol(ph))
@ -593,7 +586,6 @@ async def test_batch_update_matches_single_operations(
num_blocks = 15
assert wallet_node.server
await wallet_node.server.start_client(PeerInfo("localhost", uint16(full_node_api.server._port)), None)
assert wallet_node.wallet_state_manager is not None
ph = await wallet_node.wallet_state_manager.main_wallet.get_new_puzzlehash()
for i in range(0, num_blocks):
await full_node_api.farm_new_transaction_block(FarmNewBlockProtocol(ph))
@ -704,7 +696,6 @@ async def test_get_owned_stores(one_wallet_node_and_rpc: nodes_with_port, bt: Bl
num_blocks = 4
assert wallet_node.server is not None
await wallet_node.server.start_client(PeerInfo("localhost", uint16(full_node_api.server._port)), None)
assert wallet_node.wallet_state_manager is not None
ph = await wallet_node.wallet_state_manager.main_wallet.get_new_puzzlehash()
for i in range(0, num_blocks):
await full_node_api.farm_new_transaction_block(FarmNewBlockProtocol(ph))
@ -741,7 +732,6 @@ async def test_subscriptions(one_wallet_node_and_rpc: nodes_with_port, bt: Block
num_blocks = 4
assert wallet_node.server is not None
await wallet_node.server.start_client(PeerInfo("localhost", uint16(full_node_api.server._port)), None)
assert wallet_node.wallet_state_manager is not None
ph = await wallet_node.wallet_state_manager.main_wallet.get_new_puzzlehash()
for i in range(0, num_blocks):
await full_node_api.farm_new_transaction_block(FarmNewBlockProtocol(ph))

View File

@ -72,7 +72,6 @@ class TestDLWallet:
full_node_api = full_nodes[0]
full_node_server = full_node_api.server
wallet_node_0, server_0 = wallets[0]
assert wallet_node_0.wallet_state_manager is not None
wallet_0 = wallet_node_0.wallet_state_manager.main_wallet
if trusted:
@ -121,7 +120,6 @@ class TestDLWallet:
full_node_api = full_nodes[0]
full_node_server = full_node_api.server
wallet_node_0, server_0 = wallets[0]
assert wallet_node_0.wallet_state_manager is not None
wallet_0 = wallet_node_0.wallet_state_manager.main_wallet
if trusted:
@ -175,8 +173,6 @@ class TestDLWallet:
full_node_server = full_node_api.server
wallet_node_0, server_0 = wallets[0]
wallet_node_1, server_1 = wallets[1]
assert wallet_node_0.wallet_state_manager is not None
assert wallet_node_1.wallet_state_manager is not None
wallet_0 = wallet_node_0.wallet_state_manager.main_wallet
wallet_1 = wallet_node_1.wallet_state_manager.main_wallet
@ -251,7 +247,6 @@ class TestDLWallet:
full_node_api = full_nodes[0]
full_node_server = full_node_api.server
wallet_node_0, server_0 = wallets[0]
assert wallet_node_0.wallet_state_manager is not None
wallet_0 = wallet_node_0.wallet_state_manager.main_wallet
if trusted:
@ -351,8 +346,6 @@ class TestDLWallet:
full_node_server = full_node_api.server
wallet_node_0, server_0 = wallets[0]
wallet_node_1, server_1 = wallets[1]
assert wallet_node_0.wallet_state_manager is not None
assert wallet_node_1.wallet_state_manager is not None
wallet_0 = wallet_node_0.wallet_state_manager.main_wallet
wallet_1 = wallet_node_1.wallet_state_manager.main_wallet
@ -526,9 +519,6 @@ class TestDLWallet:
# wallet_node_0, server_0 = wallets[0]
# wallet_node_1, server_1 = wallets[1]
# wallet_node_2, server_2 = wallets[2]
# assert wallet_node_0.wallet_state_manager is not None
# assert wallet_node_1.wallet_state_manager is not None
# assert wallet_node_2.wallet_state_manager is not None
# wallet_0 = wallet_node_0.wallet_state_manager.main_wallet
# wallet_1 = wallet_node_1.wallet_state_manager.main_wallet
# wallet_2 = wallet_node_2.wallet_state_manager.main_wallet
@ -645,9 +635,6 @@ class TestDLWallet:
# wallet_node_0, server_0 = wallets[0]
# wallet_node_1, server_1 = wallets[1]
# wallet_node_2, server_2 = wallets[2]
# assert wallet_node_0.wallet_state_manager is not None
# assert wallet_node_1.wallet_state_manager is not None
# assert wallet_node_2.wallet_state_manager is not None
# wallet_0 = wallet_node_0.wallet_state_manager.main_wallet
# wallet_1 = wallet_node_1.wallet_state_manager.main_wallet
# wallet_2 = wallet_node_2.wallet_state_manager.main_wallet

View File

@ -50,7 +50,6 @@ class TestWalletRpc:
full_node_server = full_node_api.full_node.server
wallet_node, server_2 = wallets[0]
wallet_node_2, server_3 = wallets[1]
assert wallet_node.wallet_state_manager is not None
wallet = wallet_node.wallet_state_manager.main_wallet
ph = await wallet.get_new_puzzlehash()