From a2791fc5df5870f2307bb475fa6760f75b2328de Mon Sep 17 00:00:00 2001 From: Lev Berman Date: Thu, 23 May 2024 16:20:29 +0200 Subject: [PATCH] fixup --- apps/arweave/src/ar_node_worker.erl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/arweave/src/ar_node_worker.erl b/apps/arweave/src/ar_node_worker.erl index c6d019d8a..3fc3726a3 100644 --- a/apps/arweave/src/ar_node_worker.erl +++ b/apps/arweave/src/ar_node_worker.erl @@ -1051,8 +1051,11 @@ pack_block_with_transactions(B, PrevB) -> [ar_wallet:to_address({?DEFAULT_KEY_TYPE, element(1, Proof)}) | Addresses2] end, Accounts = ar_wallets:get(PrevB#block.wallet_list, Addresses3), - [{_, BlockAnchors}] = ets:lookup(node_state, block_anchors), - [{_, RecentTXMap}] = ets:lookup(node_state, recent_txs_map), + [{block_txs_pairs, BlockTXPairs}] = ets:lookup(node_state, block_txs_pairs), + PrevBlocks = ar_block_cache:get_fork_blocks(block_cache, B), + BlockTXPairs2 = update_block_txs_pairs(B, PrevBlocks, BlockTXPairs), + BlockTXPairs3 = tl(BlockTXPairs2), + {BlockAnchors, RecentTXMap} = get_block_anchors_and_recent_txs_map(BlockTXPairs3), ValidTXs = ar_tx_replay_pool:pick_txs_to_mine({BlockAnchors, RecentTXMap, Height - 1, RedenominationHeight, Rate, PricePerGiBMinute, KryderPlusRateMultiplier, PrevDenomination, B#block.timestamp, Accounts, TXs}),