Roman Khimov
0c160a81fe
transaction: use increments instead of '+1's
...
Fixes golint warning:
should replace sz += 1 with sz++
Refs. #213 .
2019-09-03 18:01:37 +03:00
Roman Khimov
a9b9c9226d
*: add/fix godoc comments to satisfy golint
...
Fixes things like:
* exported type/method/function X should have comment or be unexported
* comment on exported type/method/function X should be of the form "X ..."
(with optional leading article)
Refs. #213 .
2019-09-03 17:57:51 +03:00
Roman Khimov
203aab6a7e
transaction: add binary encoding for publish
...
And expand the test to check for it. Fixes #319 .
2019-08-30 19:19:43 +03:00
Roman Khimov
683424cce8
transaction: implement proper Size() everywhere
...
Will be needed for the block test from `dev`.
2019-08-30 11:41:10 +03:00
Vsevolod Brekelov
abc5833853
transaction: add version check for publish
...
-Version check done before reading NeedStorage flag
-Add testify according to review
2019-08-29 19:14:22 +03:00
Roman Khimov
361724a33e
pkg/core: use util.binaryReader/Writer
...
Simplify error handling.
2019-08-28 19:45:17 +03:00
Anthony De Meulemeester
94672cb9cc
Persistance ( #53 )
...
* added publish TX for backwards compat.
* lowered the prototick for faster block syncing
* print useragent on startup
* added createMultiRedeemScript for genesis block generation.
* building genesis block from scratch.
* implemented merkle tree.
* starting blockhain with generated genesis hash
* Fixed bug in unspent coin state.
* fixed broken tests after genesis block.
* removed log line.
* bumped version -> 0.34.0
2018-03-25 12:45:54 +02:00
Anthony De Meulemeester
52fa41a12a
Persist transactions ( #51 )
...
* added account_state + changed ECPoint to PublicKey
* account state persist
* in depth test for existing accounts.
* implemented GetTransaction.
* added enrollment TX
* added persist of accounts and unspent coins
* bumped version -> 0.32.0
2018-03-21 17:11:04 +01:00