Evgenii Stratonikov
67ee4ed0a6
cli: allow to import state root dumps
2020-09-15 16:16:48 +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
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
Roman Khimov
92f8cee6cd
network: raise MPTRoot broadcast priority
...
It can affect consensus process.
2020-08-10 16:48:05 +03:00
Roman Khimov
ab7a69bfec
network: prevent useless getroots requests
...
At the height of A we only reliably have a state root for A-1, so there is no
point in requesting state root for A from our peers. Prevents tons of useless
traffic:
2020-08-10T00:02:35.537+0300 DEBUG got msg {"addr": "127.0.0.1:20333", "type": "getroots"}
2020-08-10T00:02:35.537+0300 DEBUG got msg {"addr": "127.0.0.1:20333", "type": "roots"}
2020-08-10T00:02:35.537+0300 DEBUG got msg {"addr": "127.0.0.1:20333", "type": "getroots"}
2020-08-10T00:02:35.537+0300 DEBUG got msg {"addr": "127.0.0.1:20333", "type": "roots"}
2020-08-10T00:02:35.539+0300 DEBUG got msg {"addr": "127.0.0.1:20335", "type": "getroots"}
2020-08-10T00:02:35.539+0300 DEBUG got msg {"addr": "127.0.0.1:20335", "type": "roots"}
2020-08-10T00:02:35.539+0300 DEBUG got msg {"addr": "127.0.0.1:20334", "type": "getroots"}
2020-08-10T00:02:35.539+0300 DEBUG got msg {"addr": "127.0.0.1:20334", "type": "roots"}
2020-08-10T00:02:35.540+0300 DEBUG got msg {"addr": "127.0.0.1:20334", "type": "getroots"}
2020-08-10T00:02:35.540+0300 DEBUG got msg {"addr": "127.0.0.1:20334", "type": "roots"}
2020-08-10T00:02:35.542+0300 DEBUG got msg {"addr": "127.0.0.1:20336", "type": "getroots"}
2020-08-10T00:02:35.542+0300 DEBUG got msg {"addr": "127.0.0.1:20336", "type": "roots"}
2020-08-10 16:48:05 +03:00
Roman Khimov
253c39d4ee
consensus: move stateroot message generation to commit phase
...
* update dbft library, change to 64-bit timestamps and CV reason
* modify messages
* generate stateroot witness data from prepare* messages during commit
Fix #1273 .
2020-08-10 16:48:05 +03:00
Roman Khimov
ffbdcb202f
Merge pull request #1288 from nspcc-dev/fix/utxo
...
rpc: adjust `getutxotransfers` RPC
2020-08-07 19:08:46 +03:00
Evgenii Stratonikov
57a325b3d5
rpc: adjust getutxotransfers
RPC
2020-08-07 18:12:40 +03:00
Roman Khimov
ebcec6e5dc
Merge pull request #1282 from nspcc-dev/rpc/invoke_with_hashes
...
rpc: use hashes for verifying in `invoke*` calls
2020-08-07 17:00:36 +03:00
Anna Shaleva
4b351f3123
cli: use hashes for verifying in invoke*
calls
2020-08-07 14:41:44 +03:00
Anna Shaleva
d20e54b725
rpc: fix method comment
2020-08-07 13:19:00 +03:00
Anna Shaleva
4715efd531
core, rpc: invoke script with hashes for verifying
...
Closes #1275
2020-08-07 13:18:55 +03:00
Roman Khimov
92851aa8e4
Merge pull request #1285 from nspcc-dev/drop-go1.12-2.x
...
[2.x] Drop go 1.12 support
2020-08-07 12:40:12 +03:00
Roman Khimov
f1ac01578b
Merge pull request #1284 from nspcc-dev/feature/nep5timestamps
...
rpc: provide timestamps in `getnep5transfers`
2020-08-07 12:34:43 +03:00
Roman Khimov
010d55e92f
use -trimpath build flag for more reproducible builds
...
Fix #349 .
2020-08-07 12:26:18 +03:00
Roman Khimov
bb4385ca50
drop support for Go 1.12
...
It's old and not maintained. Use latest Go for builds and test only with 1.13
and 1.14.
2020-08-07 12:25:45 +03:00
Roman Khimov
db98f8f30b
Merge pull request #1274 from nspcc-dev/lowercase-json-field-names-for-stateroot
...
rpc: use lowercase JSON field names for StateHeight
2020-08-07 12:24:59 +03:00
Evgenii Stratonikov
02033f8355
rpc: set default values in getutxotransfers
2020-08-07 09:49:09 +03:00
Evgenii Stratonikov
fe5e5ff44a
rpc: provide timestamps in getnep5transfers
...
Set default value for the first timestamp to a week ago.
2020-08-07 09:43:23 +03:00