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
Roman Khimov
56d57611ca
rpc: add paging to get*transfer calls
2020-09-13 00:12:45 +03:00
Roman Khimov
0ece58e6dd
rpc/server: deduplicate parameter parsing for get*transfers
2020-09-11 22:33:17 +03:00
Roman Khimov
a1357789cf
Merge pull request #1397 from nspcc-dev/minimum-network-fee
...
Minimum network fee
2020-09-11 18:18:58 +03:00
Roman Khimov
e14ba6c855
core: fix policy-enforcing network fee check
...
0.001 should be added to the 'extra' value as per https://neo.org/blog/details/4148
2020-09-11 16:52:58 +03:00
Roman Khimov
c4d287f326
config: update FreeGas values
...
Based on neo-project/neo-node#656 changes.
2020-09-11 16:48:52 +03:00
Roman Khimov
0ef65d1bb9
config: add minimum network fee setting
...
Follow neo-project/neo#1901 .
2020-09-11 15:41:08 +03:00
Roman Khimov
8865d5b2c5
Merge pull request #1395 from nspcc-dev/add-limits-to-gettransfers
...
Add limits to get(nep5|utxo)transfers
2020-09-09 15:45:09 +03:00
Roman Khimov
319e3996f4
Merge pull request #1394 from nspcc-dev/make-free-gas-height-dependent
...
config: allow configuring free gas depending on height
2020-09-08 19:07:02 +03:00
Roman Khimov
5b05081525
config: allow configuring free gas depending on height
...
And update default mainnet/testnet settings. Follow neo-project/neo#1888 and
neo-project/neo-node#656 .
2020-09-08 18:52:53 +03:00
Roman Khimov
b310ac051b
core/rpc: add continue
flag to iterating functions
...
Most of the time we don't need to get all transfers from the DB and
deserialize them.
2020-09-08 15:38:33 +03:00
Roman Khimov
d3e415d3bd
core/state: reverse the order of ForEachTransfer
...
When using limits we're usually concerned about the most recent
transfers. Returning 3 transfers from the middle of the chain isn't very
helpful.
2020-09-08 12:57:45 +03:00
Roman Khimov
6761efff24
rpc/server: add limit to get*transfers calls
...
Return only N transfers requested.
2020-09-08 12:56:52 +03:00
Roman Khimov
75ed6c8c08
Merge pull request #1393 from nspcc-dev/tx-set-vout-position
...
transaction: set output position when decoding
2020-09-07 17:46:04 +03:00
Roman Khimov
9aee3e5a34
transaction: set output position when decoding
...
We had a kludge for getrawtransaction to set this useless field, but
7e371588a7
broke it. Add it right into the
decoder now to fix all types of queries (getblock/getrawtransaction/gettxout).
Fixes #1392 .
2020-09-07 15:37:57 +03:00
Roman Khimov
04ebef9119
Merge pull request #1386 from nspcc-dev/fix-neo-utxo-tracking
...
core: fix NEO UTXO tracking, drop Fixed8 multiplier
2020-09-04 15:40:24 +03:00
Roman Khimov
39897e811d
core: fix NEO UTXO tracking, drop Fixed8 multiplier
...
When this vout:
{
"n" : 0,
"address" : "ASkbjwosE3aKyGtDQkEgqhNq3Zpv8Xkt14",
"asset" : "0xc56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
"value" : "606"
},
Becomes this transfer:
{
"txid" : "0x192ab8e422aed6ac868cb329d6f9af20964134b591908c736d32a2fd8a51d7bf",
"amount" : "60600000000",
"block_index" : 6113653,
"timestamp" : 1599199074
}
Something is wrong here.
2020-09-04 09:09:35 +03:00
Roman Khimov
1ffc316cc1
Merge pull request #1369 from nspcc-dev/fix/getapplog-2.x
...
rpc: support 0x form of Uint256 in requests (2.x)
2020-08-27 13:36:38 +03:00
Evgenii Stratonikov
8ff2d35723
rpc: support 0x form of Uint256 in requests
2020-08-27 12:56:32 +03:00
Roman Khimov
c4057b8906
Merge pull request #1316 from nspcc-dev/fix/wallet
...
consensus: exit if wrong password is provided in configuration
2020-08-14 16:26:45 +03:00
Evgenii Stratonikov
cf48e82242
consensus: exit if wrong password is provided in configuration
2020-08-14 15:33:32 +03:00
Roman Khimov
e8fd6fde99
Merge pull request #1325 from nspcc-dev/fix/watchonly
...
go.mod: update dbft version
2020-08-14 12:51:17 +03:00
Evgenii Stratonikov
43f986d24d
go.mod: update dbft version
2020-08-14 12:47:45 +03:00
Roman Khimov
c86522719a
Merge pull request #1320 from nspcc-dev/fix-stateroot-generation
...
Fix stateroot generation
2020-08-14 10:01:55 +03:00