Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lev Berman committed May 23, 2024
1 parent e06fe7f commit a2791fc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/arweave/src/ar_node_worker.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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}),
Expand Down

0 comments on commit a2791fc

Please sign in to comment.