Commit graph

2204 commits

Author SHA1 Message Date
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
Roman Khimov
25307834ab consensus: don't generate stateroot before StateRootEnableIndex 2020-08-13 19:34:52 +03:00
Roman Khimov
ee61120e13 consensus: move stateroot generation from newBlockFromContext to newCommit
Fixes #1313. newCommit is only called once and only when we have enough
signatures unlike newBlockFromContext that is also being called to create
PrepareResponse.
2020-08-13 16:57:59 +03:00
Roman Khimov
5f46aa096f
Merge pull request #1310 from nspcc-dev/fix-yaml-import-path-2.x
*: use proper YAML library import path, fix #1306
2020-08-12 17:15:44 +03:00
Roman Khimov
56b2a16389 *: use proper YAML library import path, fix #1306 2020-08-12 16:26:41 +03:00
Roman Khimov
43eb670d45 mpt: fix comment typo 2020-08-11 21:55:51 +03:00
Roman Khimov
b8ec1b1d93 CHANGELOG: release 0.77.0 2020-08-11 15:48:51 +03:00
Roman Khimov
dfa53c635d config: revert the wrong part of 8850ecd4c
Sorry.
2020-08-10 19:56:34 +03:00
Roman Khimov
d8aac7c675
Merge pull request #1291 from nspcc-dev/stateroot-relaying-during-commit-2.x
Stateroot relaying during commit 2.x
2020-08-10 19:22:17 +03:00
Roman Khimov
47ed2eda43 docs: update neox.md with the latest protocol changes 2020-08-10 16:48:05 +03:00
Roman Khimov
8850ecd4ca config: enable stateroot for mainnet
See neo-project/neo-node#644.
2020-08-10 16:48:05 +03:00