Skip to content

Commit 55579c6

Browse files
committed
[GH-#91] Initial txs_index is calculated with the genesis block (still an empty map)
1 parent f647551 commit 55579c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/aecore/lib/aecore/chain/worker.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ defmodule Aecore.Chain.Worker do
2323
genesis_block_map = %{genesis_block_hash => Block.genesis_block()}
2424
genesis_chain_state = ChainState.calculate_block_state(Block.genesis_block().txs)
2525
latest_block_chain_state = %{genesis_block_hash => genesis_chain_state}
26-
txs_index = %{}
26+
txs_index = acc_txs_info(Block.genesis_block())
2727
initial_state = {genesis_block_map, latest_block_chain_state, txs_index}
2828

2929
{:ok, initial_state}

0 commit comments

Comments
 (0)