neo-go/pkg/core
Roman Khimov 0c3b03617e core: optimize HasBlock check for recent blocks
When block is being spread through the network we can get a lot of invs with
the same hash. Some more stale nodes may also announce previous or some
earlier block. We can avoid full DB lookup for them and minimize inv handling
time (timeouts in inv handler had happened in #2744).

It doesn't affect tests, just makes node a little less likely to spend some
considerable amount of time in the inv handler.
2022-10-21 21:21:58 +03:00
..
block block: JSONize tx-less block as [] instead of null 2022-07-21 13:15:31 +03:00
chaindump core: move chain dump test into its own package 2022-06-08 15:28:08 +03:00
dao golangci: add predeclared linter 2022-09-02 18:36:26 +03:00
fee vm: add MODMUL and MODPOW opcodes 2022-05-12 14:25:14 +03:00
interop cli: use custom logger to filter out runtime.Log messages 2022-10-07 15:57:33 +03:00
mempool [#2442] English Check 2022-05-04 19:48:27 +03:00
mempoolevent [#2442] English Check 2022-05-04 19:48:27 +03:00
mpt golangci: enable/fix misspell 2022-09-02 18:36:26 +03:00
native core, rpc: move getFakeNextBlock to Blockchain 2022-10-07 15:56:34 +03:00
state state: check for array length in (*Contract).FromStackItem 2022-08-16 17:19:47 +03:00
stateroot core, rpc: support [invokefunction, invokescript, invokecontractverify]historic 2022-04-29 16:10:04 +03:00
statesync network: allow to handle GetMPTData with KeepOnlyLatestState on 2022-07-14 14:33:20 +03:00
storage core: close BoltDB on failed root bucket creation 2022-10-10 10:12:34 +03:00
test_data core: refactor helper test contracts generation 2022-03-30 11:46:29 +03:00
transaction core: add example to VUB comment 2022-10-06 10:32:18 +03:00
basic_chain_test.go *: apply go 1.19 formatter heuristics 2022-08-09 15:37:52 +03:00
bench_test.go *: reuse smartcontract package to create standard entry scripts 2022-07-26 12:19:49 +03:00
blockchain.go core: optimize HasBlock check for recent blocks 2022-10-21 21:21:58 +03:00
blockchain_core_test.go golangci: enable/fix misspell 2022-09-02 18:36:26 +03:00
blockchain_neotest_test.go *: use uint*Size and SignatureLen constants where appropriate 2022-10-05 10:45:52 +03:00
doc.go *: apply go 1.19 formatter heuristics 2022-08-09 15:37:52 +03:00
helper_test.go core: rebase core tests onto neotest 2022-03-30 19:00:53 +03:00
interops.go core: move storage-related interop code into the storage package 2022-06-08 22:26:24 +03:00
native_designate_test.go core: add some comment for TestDesignate_DesignateAsRole 2022-06-08 23:11:14 +03:00
prometheus.go stateroot: move state-root related logic to core/stateroot 2021-03-09 13:48:29 +03:00
util.go core: export CreateGenesisBlock 2022-06-08 18:20:34 +03:00
util_test.go core: export CreateGenesisBlock 2022-06-08 18:20:34 +03:00