Skip to content

Commit

Permalink
fix: adjust state_pre_transform_micro_node function on Db mod
Browse files Browse the repository at this point in the history
  • Loading branch information
sborrazas committed Dec 24, 2024
1 parent 5d2f211 commit 9b7786b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/ae_mdw/node/db.ex
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ defmodule AeMdw.Node.Db do
{:value, micro_block} = :aec_db.find_block(mb_hash)

node = :aec_chain_state.wrap_block(micro_block)
height = :aec_blocks.height(micro_block)
prev_hash = :aec_block_insertion.node_prev_hash(node)

{:value, trees_in, _tree, _difficulty, _fees, _fraud} =
Expand All @@ -301,8 +300,8 @@ defmodule AeMdw.Node.Db do
|> :aec_blocks.to_header()
|> :aec_headers.consensus_module()

height
|> consensus_mod.state_pre_transform_micro_node(node, trees_in)
node
|> consensus_mod.state_pre_transform_micro_node(trees_in)
|> :aec_trees.accounts()
end

Expand Down

0 comments on commit 9b7786b

Please sign in to comment.