Roman Khimov
1f83f472c7
core: swap transfer and MPT GC
...
It doesn't change anything logically, but transfer GC needs to have current
block timestamp for its logic and if we're delaying it with MPT GC it can
more often fail to obtain it:
2025-01-13T16:15:18.311+0300 ERROR failed to get block timestamp transfer GC {"time": "1.022µs", "index": 20000}
It's not critical, this garbage can still be collected on the next run, but
we better avoid this anyway.
Refs. #3783 .
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2025-01-13 23:37:21 +03:00
Anna Shaleva
4d2b88dd9d
Merge pull request #3778 from nspcc-dev/archival-node
...
Archival node
2024-12-28 12:07:28 +03:00
Roman Khimov
82b400700f
capability: add ArchivalNode, fix #3776
...
This will be used to differentiate full history nodes from state only. Currently
it's just a definition, we can not use it safely on current networks because
nodes will refuse this Version, so actual code using the attribute will be
added in newer versions.
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-12-28 10:51:40 +03:00
Roman Khimov
4720727bf5
capability: allow to decode unknown capabilities
...
It's more symmetric than the C# counterpart, but the essence is the same: we
can accept capabilities we can't interpret. Refs. https://github.com/neo-project/neo/pull/3639
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-12-28 10:51:40 +03:00
Roman Khimov
47b679341b
capability: specify reserved type range
...
Follow https://github.com/neo-project/neo/pull/3639 .
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-12-28 10:51:40 +03:00
Roman Khimov
e0338b7ed0
capability: improve FullNode documentation
...
That's the way it's defined and used in C#, see https://github.com/neo-project/neo/pull/3639 also.
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-12-27 12:14:48 +03:00
Anna Shaleva
64c4de4e38
Merge pull request #3700 from nspcc-dev/nep-27-candidate-registration
...
NEO candidate registration via NEP-27 callback
2024-12-25 10:50:03 +03:00
Roman Khimov
38b9b13098
blockfetcher: make UT work with AIO started
...
Connection succeeds when AIO is running, some more obscure port is less likely
to cause this problem.
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-12-25 10:36:38 +03:00
Roman Khimov
4d45be8434
native: add candidate registration via onNEP17Payment
...
Solves two problems:
* inability to estimate GAS needed for registerCandidate in a regular way
because of its very high fee (more than what normal RPC servers allow)
* inability to have MaxBlockSystemFee lower than the registration price
which is very high on its own (more than practically possible to execute)
See https://github.com/neo-project/neo/issues/3552 .
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-12-25 10:36:38 +03:00
Roman Khimov
ab5128fb48
config: enable Echidna for tests
...
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-12-24 18:01:12 +03:00
Anna Shaleva
dc747ce3b7
Merge pull request #3761 from nspcc-dev/designate
...
native: add Echidna changes
2024-12-24 10:36:36 +03:00
Ekaterina Pavlova
663146aa1f
examples: update neo-go deps
...
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-12-23 17:01:20 +01:00
Ekaterina Pavlova
86b2493edd
*: update interop deps
...
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-12-23 15:57:05 +01:00
Ekaterina Pavlova
80e18222bc
native: add callflag.AllowNotify
to some methods to HFEchidna
...
Close #3702
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-12-23 15:54:56 +01:00
Ekaterina Pavlova
b096e68428
native: add Base64URL support to the StdLib starting from HFEchidna
...
Close #3550
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-12-23 15:54:56 +01:00
Ekaterina Pavlova
dc68e39811
native: add Designation event extension starting from HFEchidna
...
Close #3549
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-12-23 15:54:54 +01:00
Anna Shaleva
992890721a
Merge pull request #3771 from Chubru/feat/add_LoadContract
...
Add 'neotest.ReadNEF' method
2024-12-20 20:53:13 +03:00
Anna Shaleva
cffafc4e79
Merge pull request #3759 from nspcc-dev/container-update
...
config: update NeoFSBlockFetcher's ContainerID
2024-12-20 20:10:59 +03:00
Chubru
0b21d4caf6
neotest: Add 'ReadNEF' method
...
Signed-off-by: Chubru <chubru.alexander@gmail.com>
2024-12-20 16:03:03 +03:00
Anna Shaleva
6d20772714
Merge pull request #3763 from nspcc-dev/index-duplicates
...
cli: add warning for duplicated index files in `upload-bin`
2024-12-17 16:27:50 +03:00
Anna Shaleva
b86c6201d3
Merge pull request #3765 from nspcc-dev/gnark-up
...
zkp: bump golang.org/x/crypto from 0.26.0 to 0.31.0
2024-12-17 16:24:09 +03:00
Ekaterina Pavlova
c669ae343b
cli: add warning for duplicated index files in upload-bin
...
As we are not afraid of duplicates this is not a critical error anymore.
BlockFetcher will take the first returned by search.
Close #3762
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-12-17 16:19:07 +03:00
Anna Shaleva
c27101a97c
Merge pull request #3760 from nspcc-dev/default-attr
...
cli: take care of `upload-bin` defaults
2024-12-17 16:13:21 +03:00
Anna Shaleva
4b7b2ef701
docs: take care of upload-bin
documentation
...
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
2024-12-17 10:18:34 +03:00
Anna Shaleva
0bb6c6e6bd
cli: take care of upload-bin
defaults
...
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
2024-12-16 15:54:15 +03:00
Ekaterina Pavlova
6d509896fb
config: update NeoFSBlockFetcher's ContainerID
...
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-12-16 14:26:40 +03:00
Anna Shaleva
24f81a7f3e
Merge pull request #3758 from nspcc-dev/sdk-fix
...
services: fix error check for NeoFS client Dial
2024-12-16 12:36:03 +03:00
Ekaterina Pavlova
f5ea79d649
services: refactor NeoFS client naming
...
There is just NeoFS client/conn.
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-12-16 11:12:46 +03:00
Ekaterina Pavlova
e741053f0c
services: drop check of Unimplemented gRPC status in neofs
helper
...
NeoFS oracle can miss problem NeoFS server on dial. So `Unimplemented`
gRPC status should not be ignored.
Close #3757
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-12-16 11:12:43 +03:00
Anna Shaleva
9189b3eb7d
Merge pull request #3753 from nspcc-dev/rel-0.107.2
...
CHANGELOG: release v0.107.2
2024-12-13 19:47:58 +03:00
Anna Shaleva
b285cf8c6e
zkp: bump golang.org/x/crypto from 0.26.0 to 0.31.0
...
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
2024-12-13 19:38:07 +03:00
Anna Shaleva
fec1ac8aee
CHANGELOG: release v0.107.2
...
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
2024-12-13 19:32:05 +03:00
Anna Shaleva
53ab704971
docs: add defaults to NeoFS BlockFetcher configuration
...
Follow #3742 .
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
2024-12-13 19:32:04 +03:00
Anna Shaleva
3f651cde27
Merge pull request #3756 from nspcc-dev/neofs-sdk-update
...
cli: refactor `neofs-sdk-go` related operations in `upload-bin`
2024-12-13 19:30:09 +03:00
Ekaterina Pavlova
39cec7d0d6
cli: refactor neofs-sdk-go
related operations in upload-bin
...
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-12-13 19:19:15 +03:00
Anna Shaleva
388ee25cd6
Merge pull request #3725 from nspcc-dev/neofs-sdk-update
...
*: update `neofs-sdk-go`
2024-12-13 17:52:56 +03:00
Ekaterina Pavlova
9e3f75e977
*: update neofs-sdk-go
...
Update to the version without pool panics
https://github.com/nspcc-dev/neofs-sdk-go/pull/643 .
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-12-13 17:07:52 +03:00
Anna Shaleva
f82088b851
Merge pull request #3749 from nspcc-dev/timestamp
...
cli: change block timestamp attribute of objects in `upload-bin`
2024-12-13 17:00:14 +03:00
Ekaterina Pavlova
be4fc98041
cli: refactor upload-bin
handler to reuse SDK built-in functionality
...
Close #3714
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-12-13 16:36:37 +03:00
Ekaterina Pavlova
247ee831e5
cli: change block timestamp attribute of objects in upload-bin
...
Close #3654
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-12-13 16:35:14 +03:00
Anna Shaleva
e0c8bebd05
Merge pull request #3751 from nspcc-dev/debug-upload-bin
...
cli: add debug on retry in `upload-bin`
2024-12-13 16:33:43 +03:00
Anna Shaleva
9834b83cf0
Merge pull request #3750 from nspcc-dev/removeuntraceableheaders
...
RemoveUntraceableHeaders
2024-12-13 16:30:31 +03:00
Roman Khimov
90b6a42331
network: make GetHeaders best-effort
...
Be a nice neighbor, try to reply with whatever headers we have, don't fail
completely because of a single missing header.
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-12-13 16:09:00 +03:00
Roman Khimov
9599fba24f
core: fix removing old transfer data with RemoveUntraceableHeaders
...
Transfer data is timestamp-based, previously it always had and used headers,
no we can go via a small cache (we don't want it to grow or be stored forever).
Otherwise it's unable to do the job:
2024-12-13T12:55:15.056+0300 ERROR failed to find block header for transfer GC {"time": "19.066µs", "error": "key not found"}
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-12-13 16:09:00 +03:00
Roman Khimov
7d89a53043
core: drop redundant tgtBlock normalization
...
It's there since 423c7883b8
, but looks like it
never changed anything, the same thing is done six lines above and tgtBlock is
not changed since.
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-12-13 16:09:00 +03:00
Roman Khimov
c53b0645bb
core: extend NewBlockchain coverage a bit
...
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-12-13 16:09:00 +03:00
Roman Khimov
c7f5f173ae
core: introduce RemoveUntraceableHeaders
...
With blocks available from NeoFS we can drop them from the local DB.
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-12-13 16:09:00 +03:00
Ekaterina Pavlova
46cbfab264
cli: add more debug info about retry to the upload-bin
...
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-12-13 13:52:33 +03:00
Anna Shaleva
38f635bce0
Merge pull request #3742 from nspcc-dev/default-blockfetcher-config
...
services: add default values for NeoFSBlockFetcher configuration
2024-12-13 12:17:56 +03:00
Ekaterina Pavlova
65bdc82da8
*: move constant and NeoFS related code into separate package
...
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-12-13 11:43:19 +03:00