neo-go/pkg/core
Anna Shaleva 65503aa9b4 core: add nonce field to transaction
1. Closes #840: added Nonce field to transaction.Transaction and
removed Nonce field from transaction.MinerTx

2. Added following methods to different tx types:
  - NewMinerTx()
  - NewMinerTxWithNonce(...)
  - NewEnrollmentTx(...)
  - NewIssueTx()
  - NewPublishTx(...)
  - NewRegisterTx(...)
  - NewStateTx(...)
in order to avoid code duplication when new transaction is created.

3. Commented out test cases where binary transaction/block are used.
These test cases marked with `TODO NEO3.0: Update binary` and need to be
updated.

4. Updated other tests

5. Added constant Nonce to GoveringTockenTx, UtilityTokenTx and genesis
block to avoid data variability. Also marked with TODO.
2020-04-14 16:19:41 +03:00
..
block core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
dao core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
mempool core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
state random: make use or random package in tests 2020-03-27 10:27:46 +03:00
storage storage: add support of BadgerDB 2020-04-09 13:55:59 +03:00
test_data Persist blockchain with leveldb on disk (#48) 2018-03-17 12:53:21 +01:00
transaction core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
blockchain.go core: make SpawnVM a method of context 2020-04-08 08:38:45 +03:00
blockchain_test.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
blockchainer.go core: wrap cached dao properly, don't miss cached data 2020-04-03 10:15:11 +03:00
gas_price.go cli: make gas parameter to deployment add gas to the base price 2020-03-11 20:34:36 +03:00
gas_price_test.go core: make SpawnVM a method of context 2020-04-08 08:38:45 +03:00
header_hash_list.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
helper_test.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
interop_neo.go core: move DAO to a separate package 2020-04-08 08:38:44 +03:00
interop_neo_test.go core: move DAO to a separate package 2020-04-08 08:38:44 +03:00
interop_system.go core: move DAO to a separate package 2020-04-08 08:38:44 +03:00
interops.go core: make SpawnVM a method of context 2020-04-08 08:38:45 +03:00
interops_test.go core: move DAO to a separate package 2020-04-08 08:38:44 +03:00
prometheus.go core: refactor out MemPool 2020-01-16 10:16:24 +03:00
spent_coin.go core: move (un)SpentCoin structs into the state package 2020-03-11 12:22:52 +03:00
util.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
util_test.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00