neoneo-go/pkg/services/oracle
Roman Khimov 3a93977b7b oracle: only process new requests after initial sync
If an oracle node is resynchronized from the genesis the service receives all
requests from all blocks via AddRequests() invoked from the native
contract. Almost all of them are long obsolete and need to be removed, native
oracle contract will try to do that with RemoveRequests() calls, but they
won't change anything.

So queue up all "initial" requests in special map and manage it directly
before the module is Run() which happens after synchronization
completion. Then process any requests that are still active and work with new
blocks as usual.
2021-07-19 22:52:59 +03:00
..
broadcaster oracle: split broadcaster into parts 2021-03-09 13:46:44 +03:00
jsonpath jsonpath: add tests for null objects, fix #2039 2021-07-07 12:27:10 +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 jsonpath: use ordered map json unmarshaler 2021-05-13 11:53:49 +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 oracle: only process new requests after initial sync 2021-07-19 22:52:59 +03:00
request.go oracle: only process new requests after initial sync 2021-07-19 22:52:59 +03:00
request_test.go oracle: check response Content-Type 2021-07-12 13:13:48 +03:00
response.go oracle: ensure proper ValidUntilBlock for backup tx 2021-07-19 21:58:10 +03:00
transaction.go *: fix whitespace errors 2021-05-12 22:51:41 +03:00