Go Node and SDK for the NEO blockchain
Find a file
decentralisedkev 493d8f3d95
[chain] Refactor, add chaincfg and database initialisation (#243)
* [chain]

- Add basic chain cfg parameters

- Added logic to insert genesis block, if it is a fresh database

- changed SaveBlock to ProcessBlock
- changed SaveHeaders to ProcessHeaders

- Changed parameter from a wire message to the payload, for header and
block processing

- Added check in chain for when the block is in the future, i.e. not at
the tip of the chain

- Added custom error returns, to distinguish between a database error
and a validation error
2019-03-28 20:23:50 +00:00
.circleci Add CircleCI to dev-branch (#165) 2019-02-27 13:49:16 +00:00
cli Initial commit 2019-02-25 22:44:14 +00:00
docs Initial commit 2019-02-25 22:44:14 +00:00
pkg [chain] Refactor, add chaincfg and database initialisation (#243) 2019-03-28 20:23:50 +00:00
.travis.yml Setup TravisCI for dev branch (#161) 2019-02-26 20:30:05 +00:00
go.mod Fix lint errors (#182) 2019-03-17 18:26:35 +00:00
go.sum Fix lint errors (#182) 2019-03-17 18:26:35 +00:00