neoneo-go/pkg/services/oracle
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
..
broadcaster oracle: split broadcaster into parts 2021-03-09 13:46:44 +03:00
jsonpath gomod: use nspcc-dev's fork of go-ordered-json 2021-09-15 15:01:01 +03:00
neofs oracle/neofs: stop using deprecated types 2021-06-10 14:16:07 +03:00
testdata wallet: rename isdefault to isDefault 2021-05-14 10:31:31 +03:00
filter.go oracle: unify filtering and add log for error case 2021-11-23 18:43:15 +03:00
filter_test.go oracle: add max nesting depth to JSONPath filter 2021-05-13 11:53:49 +03:00
network.go network: implement Oracle module 2021-01-28 12:43:20 +03:00
network_test.go network: implement Oracle module 2021-01-28 12:43:20 +03:00
nodes.go crypto: allow to provide non-default scrypt parameters 2021-06-11 15:22:28 +03:00
oracle.go Merge pull request #2075 from nspcc-dev/small-refactoring 2021-07-20 11:29:59 +03:00
request.go oracle: unify filtering and add log for error case 2021-11-23 18:43:15 +03:00
request_test.go oracle: check response Content-Type 2021-07-12 13:13:48 +03:00
response.go services: fix Oracle response transaction creation 2021-11-30 10:43:58 +03:00
transaction.go *: fix whitespace errors 2021-05-12 22:51:41 +03:00