Anna Shaleva
171e01be3c
Merge pull request #3691 from nspcc-dev/uploader-eq-search
...
upload-bin, NeoFSBlockFetcher: migrate to SEARCH with strict equality comparator
2024-11-25 13:43:12 +03:00
Ekaterina Pavlova
43609dd984
*: migrate to SEARCH with strict equality comparator
...
Close #3670
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-11-25 13:19:35 +03:00
Anna Shaleva
3d3f3f67e6
Merge pull request #3697 from nspcc-dev/logs-for-cash
...
core: fix restoring chain with `StateRootInHeader = true`
2024-11-25 12:52:11 +03:00
Ekaterina Pavlova
616c805ac5
cli: refactor index file search in upload-bin
command
...
Align index file searching logic with block search.
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-11-22 17:45:35 +03:00
Ekaterina Pavlova
5dab154582
cli: split searchBatchSize
usage in upload-bin
command
...
Split searchBatchSize into constant for searching and uploading.
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-11-22 17:45:35 +03:00
Ekaterina Pavlova
9fd375d56d
cli: fix nil error of fetchLatestMissingBlockIndex
in upload-bin
...
Close #3653
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-11-22 17:45:35 +03:00
Roman Khimov
ff15e39363
Merge pull request #3695 from nspcc-dev/add-unwrap-errnull
...
unwrap: add ErrNull to handle Null returned, fix #2795
2024-11-22 14:19:46 +03:00
Ekaterina Pavlova
85c3b96f82
core: fix restoring chain with StateRootInHeader = true
...
Close #3597
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-11-22 13:33:50 +03:00
Roman Khimov
3d00a19383
unwrap: add ErrNull to handle Null returned, fix #2795
...
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-11-21 13:23:32 +03:00
Anna Shaleva
cdbc026c27
Merge pull request #3692 from nspcc-dev/basicchain-doc
...
*: extend basic testing chain documentation
2024-11-20 18:35:30 +03:00
Anna Shaleva
40dda9f524
*: extend basic testing chain documentation
...
Save some time for developers who are not familiar with RPC server
unit-test structure.
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
2024-11-20 18:06:13 +03:00
Anna Shaleva
2b758c53eb
Merge pull request #3560 from nspcc-dev/nep24
...
manifest: support NEP-24
2024-11-20 15:37:53 +03:00
Ekaterina Pavlova
b63c7aad73
rpcsrv: add NEP24 test
...
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-11-20 14:45:28 +03:00
Ekaterina Pavlova
8e99ff65e1
rpcsrv: update testdata/testblocks.acc
...
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-11-20 14:45:28 +03:00
Ekaterina Pavlova
b2bd8e4a0a
manifest: support NEP-24
...
Close #3451
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-11-20 14:45:28 +03:00
Ekaterina Pavlova
54e3708566
manifest: add Required
field to Standard
...
`Required` contains standards that are required for this standard.
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-11-20 14:45:28 +03:00
Anna Shaleva
57eec71101
Merge pull request #3690 from nspcc-dev/drop-compat-0.107.0
...
Drop deprecated code for 0.107.0
2024-11-20 11:03:46 +03:00
Roman Khimov
3f1ccdd2ce
ROADMAP: fix missing trailing newline
...
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-11-19 22:23:05 +03:00
Roman Khimov
aba781c2de
waiter: remove compat code for block-based waiting
...
A part of #3454 for 0.107.0 release.
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-11-19 22:23:00 +03:00
Roman Khimov
aeee733479
neorpc: remove deprecated error codes (as scheduled)
...
A part of #3454 .
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-11-19 21:47:27 +03:00
Roman Khimov
632092b2cd
network: drop deprecated serv_node_version metric
...
A part of #3454 .
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-11-19 21:43:08 +03:00
Roman Khimov
125f757988
state: drop compatibility code for NEOBalance
...
A part of #3454 .
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-11-19 21:40:01 +03:00
Roman Khimov
7683f4366d
result: drop obsolete unmarshaling code
...
A part of #3454 .
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-11-19 21:35:50 +03:00
Anna Shaleva
2b1b9a4fca
Merge pull request #3685 from nspcc-dev/vm-map
...
vm: fix packmap operation
2024-11-19 17:56:28 +03:00
Ekaterina Pavlova
9082c6ea1a
vm: fix PACKMAP operation
...
Close #3613
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-11-19 13:49:53 +03:00
Anna Shaleva
176593b31f
Merge pull request #3687 from nspcc-dev/extend-smartcontract-conversions
...
Extend smartcontract type conversions
2024-11-18 17:21:22 +03:00
Roman Khimov
db2956f1af
smartcontract: add support for maps in NewParameterFromValue
...
It's just not possible to use maps in invokers/actors without this. And maps
have too many combinations to try pushing them into a type switch, that's
where reflection kicks in and solves it easily.
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-11-18 15:20:39 +03:00
Roman Khimov
22c6ab4de9
smartcontract: process slices via reflection in NewParameterFromValue
...
Pros:
* less code
* handles more types
Cons:
* slow
This code is not likely to be on the hot path and it is exactly the one used
by actors for making calls of various kinds. Supporting more types is more
important here than raw speed.
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-11-18 15:20:39 +03:00
Anna Shaleva
990634a43a
Merge pull request #3688 from nspcc-dev/vm-fix-popitem-refcounting
...
vm: fix incorrect refcounting in POPITEM
2024-11-18 11:32:57 +03:00
Roman Khimov
270f0d2d7a
vm: fix incorrect refcounting in POPITEM
...
We're popping an item (array) off the stack, OK, it triggers refs.Remove() for
it. Then we're pushing an inner item to the stack, OK, it triggers refs.Add()
for this element. Why are we removing it afterwards? Looks like something went
wrong in 324107b31e
(and https://github.com/nspcc-dev/neo-go/pull/1670 )
since a simple test shows zero counter after POPITEM and -1 after popping the
only item left on the stack.
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-11-16 18:03:25 +03:00
Roman Khimov
a123b75fd9
io: no need to do ValueOf() again, it's known
...
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-11-15 22:29:06 +03:00
Anna Shaleva
4a96bd1dc1
Merge pull request #3686 from nspcc-dev/fix-mode
...
cli: fix `skip-blocks-uploading` mode
2024-11-15 17:39:00 +03:00
Ekaterina Pavlova
5f6284de05
cli: fix skip-blocks-uploading
mode of upload-bin
command
...
If uploadBlocks succeeded uploadIndexFiles should work based on the
currentBlockHeight.
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-11-15 17:28:24 +03:00
Ekaterina Pavlova
58ed448f8d
cli: add debug mode to upload-bin
command
...
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-11-15 17:18:44 +03:00
Anna Shaleva
b97d0b2326
Merge pull request #3684 from nspcc-dev/last-block
...
cli: fix fetchLatestMissingBlockIndex and uploadIndexFiles in `upload-bin` command
2024-11-15 15:12:30 +03:00
Ekaterina Pavlova
375b095f78
cli: add details to the logs in upload-bin
...
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-11-15 14:34:36 +03:00
Ekaterina Pavlova
380d112599
cli: fix stopping of uploadIndexFiles in upload-bin
...
The expected count of index files should be counted based on the already
uploaded object number.
Close #3669
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-11-15 14:34:36 +03:00
Ekaterina Pavlova
6e863e9a06
cli: fix fetchLatestMissingBlockIndex in upload-bin
command
...
Close #3667
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-11-15 14:34:10 +03:00
Roman Khimov
895a0ae624
Merge pull request #3677 from ixje/expose-slots
...
vm: make slots public
2024-11-15 13:16:48 +03:00
ixje
7ec0c1155c
vm: expose Context slots, hide Set/ClearRefs on Slot, deprecate Dump*Slot methods
...
Signed-off-by: ixje <erik@coz.io>
2024-11-15 11:05:42 +01:00
Anna Shaleva
5707bdd1d1
Merge pull request #3683 from nspcc-dev/improve-tx-doc
...
Improve tx and block doc
2024-11-15 12:39:36 +03:00
Roman Khimov
9cc16d73f2
core: a bit better field explanations for header/transaction
...
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-11-15 11:27:21 +03:00
Roman Khimov
933d522b82
block: explain protocol extensions better
...
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-11-15 11:27:21 +03:00
Roman Khimov
ccbb198a5b
core: document trimmed transactions better
...
Eventually we can drop them, but they were present for a long long time.
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-11-15 11:27:21 +03:00
Roman Khimov
bbec25de43
block: document hash caching better
...
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-11-15 11:27:21 +03:00
Roman Khimov
7af2ab92d2
transaction: specify hash/size behavior better
...
Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-11-15 11:27:21 +03:00
Anna Shaleva
c2b4d32224
Merge pull request #3680 from nspcc-dev/fix-range
...
*: remove range usage from smartcontracts
2024-11-14 17:22:27 +03:00
Ekaterina Pavlova
71a89c230a
*: remove range usage from smartcontracts
...
Reverting a part of 1b83dc2
, because ranging over integers is not
supported by smart contract compiler, ref. #3525 .
Close #3671
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
2024-11-14 16:57:39 +03:00
Anna Shaleva
3ec06f316e
Merge pull request #3674 from ixje/remove-breakpoint
...
vm: add RemoveBreakPoint support
2024-11-14 12:42:57 +03:00
ixje
d8ea4103c7
cli: add delete and list break point commands
...
Close #3673
Signed-off-by: ixje <erik@coz.io>
2024-11-14 09:52:25 +01:00