Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
thepiwo opened this issue Oct 25, 2017 · 0 comments · Fixed by #107
Closed
2 tasks done

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

thepiwo opened this issue Oct 25, 2017 · 0 comments · Fixed by #107
Assignees

Comments

@thepiwo
Copy link
Collaborator

thepiwo commented Oct 25, 2017

  • Keep the chain_state as it is. %{acc => %{balance: balance, latest_nonce: latest nonce}}
  • make a txs_index which is %{acc => [{block_hash, tx_hash}]} this gets updated on add_block but is not kept in the block itself
@d-velev d-velev self-assigned this Oct 31, 2017
d-velev added a commit that referenced this issue Nov 2, 2017
…count as key and a list of {block_hash, tx_hash} for each tx as value
d-velev added a commit that referenced this issue Nov 2, 2017
d-velev added a commit that referenced this issue Nov 2, 2017
thepiwo added a commit that referenced this issue Nov 2, 2017
GH-91 Add list of transactions concerning account to chainstate (block_hash, tx_hash)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants