Skip to content

Conversation

d-velev
Copy link
Contributor

@d-velev d-velev commented Nov 2, 2017

closes #91

latest_block_chain_state = %{genesis_block_hash => genesis_chain_state}

initial_state = {genesis_block_map, latest_block_chain_state}
txs_index = %{}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build the initial index from the Block.genesis_block().txs even if there are none

get_blocks(latest_block_hash, latest_block_obj.header.height)
end

def acc_txs_info(block) do
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to something more understandable, what it actually does

@thepiwo thepiwo requested a review from cytadela8 November 2, 2017 13:16
@thepiwo thepiwo merged commit f553cd5 into master Nov 2, 2017
@thepiwo thepiwo deleted the GH-91 branch October 5, 2018 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add list of transactions concerning account to chainstate (block_hash, tx_hash)

4 participants