neoneo-go/pkg
Anna Shaleva 1d1538c566 services: fix Oracle response transaction creation
Problem: transactions with wrong hashes are accepted to the chain if
consensus nodes are designated as Oracle nodes. The result is wrong
MerkleRoot for the accepted block. Consensus nodes got such blocks
right from the dbft and store them without errors, but if
non-consensus nodes are present in the network, they just can't accept
these "bad" blocks:
```
2021-11-29T12:56:40.533+0300	WARN	blockQueue: failed adding block into the blockchain	{"error": "invalid block: MerkleRoot mismatch (expected a866b57ad637934f7a7700e3635a549387e644970b42681d865a54c3b3a46122, calculated d465aafabaf4539a3f619d373d178eeeeab7acb9847e746e398706c8c1582bf8)", "blockHeight": 17, "nextIndex": 18}
```

This problem happens because of transaction hash caching. We can't set
transaction hash if transaction construction wasn't yet completed.
2021-11-30 10:43:58 +03:00
..
compiler *: fix tests failing due to path.Join usage 2021-11-29 11:11:09 +03:00
config rpc: add server-side NEP-11 tracking API 2021-11-19 12:58:46 +03:00
consensus rpc: refactor calculatenetworkfee handler 2021-10-25 19:07:25 +03:00
core services: fix Oracle response transaction creation 2021-11-30 10:43:58 +03:00
crypto keys: reuse coordLen where appropriate 2021-08-26 17:30:04 +03:00
encoding util: move ArrayReverse into package of its own 2021-07-19 22:57:55 +03:00
interop compiler: remove custom logic for util builtins 2021-10-23 16:12:47 +03:00
io *: fix tests failing due to path.Join usage 2021-11-29 11:11:09 +03:00
neotest neotest: extend Executor with DeployContractCheckFAULT 2021-11-18 12:28:04 +03:00
network network: fix data race in TestHandleMPTData, fix #2241 2021-11-15 12:37:01 +03:00
rpc rpc/client: fix custom* scope processing in CreateTxFromScript 2021-11-22 12:44:42 +03:00
services services: fix Oracle response transaction creation 2021-11-30 10:43:58 +03:00
smartcontract *: use NEP-XX naming consistently in docs/comments 2021-11-19 12:58:46 +03:00
util util: reduce allocations in util.Uint256DecodeStringLE 2021-08-17 16:53:39 +03:00
vm *: fix tests failing due to path.Join usage 2021-11-29 11:11:09 +03:00
wallet Merge pull request #2264 from nspcc-dev/fix-win-tests 2021-11-29 11:25:35 +03:00