Skip to content

Initial Implementation

David Vorick requested to merge state into master

This is a minimal implementation that leaves out a few important things.

Summary:

  1. Add all dot files to .gitignore. Maybe should have added .swp or something instead.
  2. Add fmt, Install, all to Makefile
  3. Add EncUint64 in integers.go, following function from other repo
  4. Add a State struct, containing structures for storing a list of blocks and all possible forks. Also stores transactions that have not yet made an appearance in a block.
  5. A ConsensusState object, which contains a list of unspent outputs and spent outputs, as well as a list of contracts that are currently active.
  6. Added and renamed a few types
  7. Added logic for accepting a new block, and integrating the changes to the ConsensusState if the block is valid.

Also made a few tweaks to the whitepaper.

Merge request reports