forked from TrueCloudLab/neoneo-go
65503aa9b4
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. |
||
---|---|---|
.. | ||
performance_test.go | ||
README.md |
Integration package
The main goal is to have integration tests here.
Performance test
Right now we have performance_test.go
to measure number of processed TX per second.
In order to run it:
$ cd integration
$ go test -bench=. -benchmem
Result:
10000 402421 ns/op 177370 B/op 90 allocs/op
PASS
ok github.com/nspcc-dev/neo-go/integration 4.360s
Which means that in 4.360 seconds neo-go processes 10 000 transactions.