Commit graph

2237 commits

Author SHA1 Message Date
Roman Khimov
50f477b2af
Merge pull request #1623 from nspcc-dev/2x/core/mempool_fix
[master-2.x] core: fix bug with mempool.verifiedMap
2020-12-16 16:54:46 +03:00
Anna Shaleva
66a64dd4c9 core: fix bug with mempool.verifiedMap
Changes ported from #1621.
2020-12-16 14:14:09 +03:00
Roman Khimov
0333107327 CHANGELOG: release 0.78.2 2020-12-03 15:41:39 +03:00
Roman Khimov
75c4251a06
Merge pull request #1588 from nspcc-dev/keep-only-latest-in-the-config
config: add KeepOnlyLatestState setting where EnableStateRoot is set
2020-12-02 20:26:09 +03:00
Roman Khimov
73bb2c2543 config: add KeepOnlyLatestState setting where EnableStateRoot is set
With its default value set to `false`.
2020-12-02 16:52:04 +03:00
Roman Khimov
64d0876fc0
Merge pull request #1503 from nspcc-dev/mpt/refcount
Implement reference counting in MPT
2020-11-18 14:20:42 +03:00
Evgenii Stratonikov
0ffffb93d7 mpt: implement reference counting 2020-11-18 12:16:05 +03:00
Roman Khimov
3a1b67e9f7
Merge pull request #1532 from nspcc-dev/feature/retransmit
network: retransmit stale transactions
2020-11-12 14:27:27 +03:00
Evgenii Stratonikov
d93ddfda10 network: retransmit stale transactions 2020-11-11 15:51:36 +03:00
Roman Khimov
06f3c34981 mempool: replace timeStamp with blockStamp
Time is not really relevant for us here and we don't use this timestamp in any
way. Yet it occupies 24 bytes and we do two clock_gettime calls to get it.

Replace it with blockStamp which is going to be used in the future for
transaction retransmissions.

It allows to improve single-node TPS by another 3%.
2020-11-11 15:48:13 +03:00
Evgenii Stratonikov
f3abbf34e3 mpt: fill cached fields when getting node from store
Node which has been got from store shouldn't be flushed again.
2020-11-11 13:22:53 +03:00
Evgenii Stratonikov
df1792c80b mpt: export func for decoding node with type
`NodeObject` can contain auxilliary fields and shouldn't be used from outside.
2020-11-11 13:22:53 +03:00
Roman Khimov
49d176010e
Merge pull request #1523 from nspcc-dev/2x/rpc/batch_requests
rpc: allow batch JSON-RPC requests
2020-11-06 17:27:18 +03:00
Anna Shaleva
ef3eb0a842 rpc: allow batch JSON-RPC requests
Close #1509
2020-11-06 17:20:27 +03:00
Roman Khimov
559024671a
Merge pull request #1516 from nspcc-dev/getblocktransfertx
Getblocktransfertx RPC API for 2.x
2020-11-03 09:48:27 +03:00
Roman Khimov
68fc8168ec rpc: add getblocktransfertx RPC call
It uses a bit different output format than getalltransfertx, so
TransferTxEvent type was adjusted accordingly.
2020-11-02 19:01:48 +03:00
Roman Khimov
136e4b5886 core: move NotificationEvent->NEP5Transfer conversion to state
We'll need it as a separate function and it's cleaner this way.
2020-10-29 22:10:40 +03:00
Roman Khimov
52135dcade docs: improve formatting 2020-10-29 19:54:05 +03:00
Roman Khimov
d775f07a55 CHANGELOG: release 0.78.1 2020-10-22 20:01:00 +03:00
Roman Khimov
77ecdcabb4
Merge pull request #1487 from nspcc-dev/fix-boltdb-get-2.x
storage: fix Get for BoltDB, fix #1482
2020-10-13 21:24:41 +03:00
Roman Khimov
14c39b2b26 storage: fix Get for BoltDB, fix #1482 2020-10-13 19:21:57 +03:00
Roman Khimov
d2ee2b5f9f
Merge pull request #1483 from nspcc-dev/2.x-fix-empty-discovery-pool
2.x fix empty discovery pool
2020-10-13 19:00:20 +03:00
Roman Khimov
78773df6ec network: try connecting to seeds indefinitely, use them with 0 pool
If the node is to start with seeds unavailable it will try connecting to each
of them three times, blacklist them and then sit forever waiting for
something. It's not a good behavior, it should always try connecting to seeds
if nothing else works.
2020-10-13 18:00:31 +03:00
Roman Khimov
b36371ed94 network: an address should either be good or bad, but not both 2020-10-13 14:16:06 +03:00
Roman Khimov
50d6cd6b0d
Merge pull request #1475 from nspcc-dev/core/get_storage_items_fix
core: copy storage item key in simple.GetStorageItems
2020-10-10 12:32:00 +03:00
Anna Shaleva
168366f33e core: copy storage item key in simple.GetStorageItems
Close #1468.

We should copy the key to avoid bytes substitution. Otherwise there's a
chance that at the end of dao.Store.Seek(...) execution some keys won't
be the same as the original keys found inside saveToMap function.
2020-10-10 12:24:08 +03:00
Roman Khimov
46d314fb4d
Merge pull request #1429 from nspcc-dev/update-dbft-library-2.x
update dbft, pick timer improvements and other optimizations
2020-09-26 18:12:35 +03:00
Roman Khimov
ca0ff47c05 update dbft, pick timer improvements and other optimizations 2020-09-25 23:06:23 +03:00
Roman Khimov
4ff5bb361a
Merge pull request #1412 from nspcc-dev/config-gas-6195000
config: follow freegasheight update
2020-09-21 13:10:12 +03:00
Roman Khimov
c83cefecc6 config: follow freegasheight update
See neo-project/neo-node#669.
2020-09-21 12:56:39 +03:00
Roman Khimov
e3c360c477 vm: fix comment typo 2020-09-15 21:44:54 +03:00
Roman Khimov
6e5fd359ae CHANGELOG: release 0.78.0 2020-09-15 21:32:59 +03:00
Roman Khimov
9fb749ff68
Merge pull request #1404 from nspcc-dev/transfertx-string-fees
rpc/server: use strings for sys and net fees in TransferTx
2020-09-15 21:29:28 +03:00
Roman Khimov
b8705bdb79 rpc/server: use strings for sys and net fees in TransferTx
The same they're displayed for transactions.
2020-09-15 20:34:34 +03:00
Roman Khimov
08782e265b
Merge pull request #1402 from nspcc-dev/testnet-free-gas-update
config: update free GAS height again
2020-09-15 19:01:48 +03:00
Roman Khimov
ec631984d0
Merge pull request #1399 from nspcc-dev/getalltransfertx-2.x
Getalltransfertx 2.x
2020-09-15 19:01:24 +03:00
Roman Khimov
35c09a2d37 config: update free GAS height again
See neo-project/neo-node#665.
2020-09-15 18:49:20 +03:00
Roman Khimov
3efc373e8a
Merge pull request #1329 from nspcc-dev/feature/importroot
Allow to import state roots from dump
2020-09-15 18:42:44 +03:00
Evgenii Stratonikov
7a976d47f3 cli: allow to export state root dumps 2020-09-15 16:16:48 +03:00
Evgenii Stratonikov
67ee4ed0a6 cli: allow to import state root dumps 2020-09-15 16:16:48 +03:00
Roman Khimov
615ae1b3aa docs: update RPC documentation with *transfers changes 2020-09-15 12:46:40 +03:00
Roman Khimov
2e0e5cff25 rpc/client: add support for getutxotransfers call 2020-09-15 12:46:40 +03:00
Roman Khimov
26d4a05e57 rpc/client: update GetNEP5Transfers call 2020-09-15 12:46:40 +03:00
Roman Khimov
23719f7e72 rpc/server: add new getalltransfertx API
It unifies UTXO and NEP5 transfers for a given address and presents it with
transaction-level grouping (and additional metadata).
2020-09-15 12:46:39 +03:00
Roman Khimov
13f29805bb
Merge pull request #1400 from nspcc-dev/height-dependent-policy
core|config: make max(free)txperblock height-dependent
2020-09-15 12:36:58 +03:00
Evgenii Stratonikov
916603d495 cli: return proper error on block import fail 2020-09-15 12:03:59 +03:00
Evgenii Stratonikov
5703c4859b cli: rename readBlock to readBytes
It reads only byte slice.
2020-09-15 11:11:55 +03:00
Roman Khimov
2f436eee4f config: change configuration changes height for mainnet
See neo-project/neo-node#663.
2020-09-15 08:40:11 +03:00
Roman Khimov
4f7fa732cf core|config: make max(free)txperblock height-dependent
See neo-project/neo-modules#336.
2020-09-14 22:57:03 +03:00
Roman Khimov
010c22e2b5 rpc/server: limit the maximum number of elements for get*transfers 2020-09-14 17:48:17 +03:00