neoneo-go/pkg/consensus
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
..
testdata consensus: use wallet in service 2020-01-17 17:25:51 +03:00
block.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
block_test.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
cache.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
cache_test.go random: make use or random package in tests 2020-03-27 10:27:46 +03:00
change_view.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
change_view_test.go network: plug in dBFT library 2019-11-27 10:57:22 +03:00
commit.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
commit_test.go random: make use or random package in tests 2020-03-27 10:27:46 +03:00
consensus.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
consensus_test.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
crypto.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
crypto_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
payload.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
payload_test.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
prepare_request.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
prepare_request_test.go random: make use or random package in tests 2020-03-27 10:27:46 +03:00
prepare_response.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
prepare_response_test.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
recovery_message.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
recovery_message_test.go core: add nonce field to transaction 2020-04-14 16:19:41 +03:00
recovery_request.go *: move all packages from CityOfZion to nspcc-dev 2020-03-03 17:21:42 +03:00
recovery_request_test.go network: plug in dBFT library 2019-11-27 10:57:22 +03:00