Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add light node mode #1270

Merged
merged 219 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
219 commits
Select commit Hold shift + click to select a range
4c1cea8
Added types
esuwu Apr 6, 2023
ced7bb3
Renamed a file
esuwu Apr 6, 2023
5aebec4
Changed asset- and waves balances structures
esuwu Apr 17, 2023
de88b10
Commented a function
esuwu Apr 17, 2023
3ab9ba4
Changed addresses types
esuwu Apr 18, 2023
cd6b4a2
Changed balanceAsset
esuwu Apr 18, 2023
26c3c61
Added a constructor
esuwu Apr 19, 2023
fba465f
Added decimals to asset snapshot
esuwu Apr 24, 2023
ce40666
Changed uint8 to int8
esuwu Apr 24, 2023
60b6bd2
Added a field for asset reissuability
esuwu Apr 24, 2023
e449c64
Changed the type of total quantity
esuwu Apr 24, 2023
178e7ab
removed the pointer
esuwu Apr 24, 2023
53ff541
Changed the type of orderID
esuwu Apr 25, 2023
95f7a49
Make 'SnapshotManager' as an interface type.
nickeskov Apr 25, 2023
3872883
Replace 'proto.assetID' to 'crypto.Digest'.
nickeskov Apr 25, 2023
31b3825
Replace 'proto.Address' to 'proto.WavesAddress'.
nickeskov Apr 25, 2023
ae7f506
Changed leaseID type
esuwu Apr 26, 2023
4253a0d
changed types of leaseIn and leaseOut
esuwu Apr 26, 2023
b1fbfbb
Removed the pointer types from AliasSnapshot
esuwu May 11, 2023
327aa8d
Change a bit 'AtomicSnapshot' interface.
nickeskov May 3, 2023
4454398
Merge branch 'master' into node-transactions-snapshots-types
nickeskov May 11, 2023
a49602a
Merge branch 'master' into node-transactions-snapshots-types
nickeskov May 12, 2023
227a7b3
Update snapshot types.
nickeskov May 16, 2023
3ee7cc2
Merge branch 'master' into node-transactions-snapshots-types
nickeskov May 16, 2023
55c7026
Removed unnecessary fields in 'AccountScriptSnapshot' struct.
nickeskov May 17, 2023
2db610c
Remove unnecessary types.
nickeskov May 17, 2023
5687128
Merge branch 'master' into node-transactions-snapshots-types
nickeskov May 17, 2023
a9d0d3f
Change 'StaticAssetInfoSnapshot.Issuer' field to 'StaticAssetInfoSnap…
nickeskov May 19, 2023
e44c91b
Merge branch 'master' into node-transactions-snapshots-types
nickeskov May 19, 2023
8109d55
Rename 'AssetReissuabilitySnapshot' to 'AssetVolumeSnapshot'.
nickeskov May 19, 2023
8861879
Add feature block reward distribution (#1082)
Anton-Rampage May 22, 2023
fa0d23d
change actions count with feature BlockRewardDistribution activated (…
Anton-Rampage May 22, 2023
5fd430e
Ride add rewards to block info (#1096)
alexeykiselev May 22, 2023
a6e0590
Merge branch 'master' into node-transactions-snapshots-types
esuwu May 23, 2023
97154db
Merge branch 'master' into node-transactions-snapshots-types
esuwu May 24, 2023
abc9772
Merge branch 'master' into node-transactions-snapshots-types
esuwu May 29, 2023
6cc7f2a
Merge branch 'master' into node-transactions-snapshots-types
nickeskov Jun 6, 2023
e3a60a7
Merge branch 'master' into node-transactions-snapshots-types
nickeskov Jun 12, 2023
d5c7b6f
Merge branch 'master' into node-transactions-snapshots-types
nickeskov Jun 14, 2023
0373068
Fix clear-text logging of sensitive information. (#1128)
nickeskov Jun 15, 2023
d7b2cac
Bump golang.org/x/sync from 0.2.0 to 0.3.0 (#1129)
dependabot[bot] Jun 15, 2023
dacc5e2
Merge branch 'master' into node-transactions-snapshots-types
esuwu Jun 15, 2023
d5355ca
Merge branch 'master' into node-transactions-snapshots-types
nickeskov Jun 19, 2023
9b7db43
Merge branch 'master' into node-transactions-snapshots-types
nickeskov Jun 20, 2023
5e7b472
Added 'LeaseStateStatus'. Changed types in 'LeaseStateSnapshot'.
nickeskov Jun 23, 2023
cc2d19d
Rename 'LeaseStateStatus.Status' to 'LeaseStateStatus.Value'.
nickeskov Jun 23, 2023
0131052
Merge branch 'master' into node-transactions-snapshots-types
nickeskov Jun 26, 2023
59e5b3c
Add methods to 'SnapshotManager' interface. Changed 'AtomicSnapshot' …
nickeskov Jun 26, 2023
24c7128
Merge branch 'master' into node-transactions-snapshots-types
esuwu Jun 28, 2023
2691042
Merge branch 'master' into node-transactions-snapshots-types
nickeskov Jun 28, 2023
48ea9a6
Snapshot applier (#1145)
nickeskov Jun 29, 2023
54b556e
Replace 'SnapshotManager' to 'SnapshotApplier'.
nickeskov Jun 29, 2023
3eb1b86
Node transaction snapshots (#1078)
esuwu Jun 30, 2023
01da4a8
Remove 'SnapshotManager' interface.
nickeskov Jun 30, 2023
b3712d1
Merge branch 'master' into node-transactions-snapshots-types
nickeskov Jun 30, 2023
9dd62f3
Merged from master
esuwu Jul 5, 2023
5c5e838
Merge branch 'master' into node-transactions-snapshots-types
esuwu Jul 5, 2023
4c3a6b3
Added a todo
esuwu Jul 9, 2023
7603130
Merged from master
esuwu Jul 10, 2023
2eb1fed
Refactored perfomerInfo
esuwu Jul 10, 2023
af07985
Refactored performer info again
esuwu Jul 10, 2023
8ca6086
Moved generation to snapshot generator
esuwu Jul 10, 2023
9e5e17b
Fixed some linter issues
esuwu Jul 16, 2023
e9d0d9e
Added an asset atomic snapshot for issue transaction
esuwu Jul 16, 2023
3ce86cf
Replaced current recording to storage to snapshot applier
esuwu Jul 16, 2023
0c83e6e
Replaced to snapshot applier, except balances
esuwu Jul 18, 2023
150fbfd
Fixed a comment
esuwu Jul 18, 2023
66c480b
Removed the comment
esuwu Jul 19, 2023
651c160
Removed unnecessary code
esuwu Jul 20, 2023
fdc87c1
Returned the linter command back
esuwu Jul 20, 2023
51904b2
Replaced current recording to storage to snapshot applier (#1162)
esuwu Jul 20, 2023
a665829
Revert "Replaced current recording to storage to snapshot applier (#1…
esuwu Jul 20, 2023
228332f
Added asset script atomic snapshot to the issue script actions
esuwu Aug 11, 2023
5d2f1d8
Fixed some linter issues
esuwu Aug 13, 2023
fccc3d0
Fixed a few more linter issues
esuwu Aug 13, 2023
6ddb1bd
Fixed all linter issues
esuwu Aug 14, 2023
0be06b3
Fixed err shadowing
esuwu Aug 14, 2023
0802417
Merged from master
esuwu Aug 14, 2023
b534b44
Merged from master
esuwu Aug 14, 2023
5e5c299
Merge branch 'master' into node-transactions-snapshots-types
esuwu Aug 14, 2023
53a0c81
Merge branch 'node-transactions-snapshots-types' into replace-to-snap…
esuwu Aug 14, 2023
4518e13
Fixed a mistake with issue counter
esuwu Aug 16, 2023
8c0a424
removed a useless line
esuwu Aug 16, 2023
e6a2fdb
Fixed applying order transactions
esuwu Aug 22, 2023
1294e7b
Fixed applying order transactions
esuwu Aug 22, 2023
72b7f1d
Added lising snapshot to the tx diff generated group
esuwu Aug 22, 2023
8891abc
merged from master
esuwu Aug 25, 2023
a15dd82
Merged from master
esuwu Aug 25, 2023
a54e8d3
Moved complexity saving into transaction performer
esuwu Aug 25, 2023
45f05e5
Moved complexity saving into transaction performer
esuwu Aug 25, 2023
f879396
removed a line
esuwu Aug 25, 2023
94c6a4a
Fixed a bug with an empty sender
esuwu Aug 30, 2023
aa537ae
Used error.Is
esuwu Aug 30, 2023
3bc1592
Set an empty script for issue with sig
esuwu Sep 6, 2023
530c241
Merged from master
esuwu Sep 12, 2023
6c5619d
add light node states
Anton-Rampage Sep 21, 2023
dc635a3
Merge branch 'master' into replace-to-snapshot-applier
esuwu Sep 27, 2023
28fab46
add snapshot storage
Anton-Rampage Oct 2, 2023
e52ac20
Merge branch 'master' into node-transactions-snapshots-types
esuwu Oct 5, 2023
5e03c66
Merge branch 'node-transactions-snapshots-types' into replace-to-snap…
esuwu Oct 5, 2023
6a5502e
fix some linter issues
Anton-Rampage Oct 5, 2023
efce4cb
move snapshots types to proto
Anton-Rampage Oct 5, 2023
3eb8f47
Merge branch 'replace-to-snapshot-applier' into add-snapshots-starage
Anton-Rampage Oct 5, 2023
22a02ac
fix linter issues
Anton-Rampage Oct 9, 2023
0670701
Merge branch 'add-snapshots-starage' into add-snapshot-network-messages
Anton-Rampage Oct 9, 2023
d41ea11
Fixed a bug with wrong action sender
esuwu Oct 9, 2023
0fb6d3f
Fixed a bug with wrong action sender
esuwu Oct 10, 2023
e5b6d47
Merge branch 'master' into node-transactions-snapshots-types
esuwu Oct 10, 2023
8455402
Merge branch 'node-transactions-snapshots-types' into replace-to-snap…
esuwu Oct 10, 2023
59f2e60
use vtproto
Anton-Rampage Oct 17, 2023
1f75b9f
Add 'TransactionStatusSnapshot'.
nickeskov Oct 24, 2023
2ae6229
Implemented 'AtomicSnapshot' interface for 'TransactionStatusSnapshot'.
nickeskov Oct 24, 2023
ac08df9
Merge branch 'master' into node-transactions-snapshots-types
nickeskov Oct 24, 2023
146ab62
Merge branch 'node-transactions-snapshots-types' into replace-to-snap…
nickeskov Oct 24, 2023
94aa8c2
Changed 'AssetScriptSnapshot' and 'scriptStorageState.setAssetScript'.
nickeskov Oct 25, 2023
57d0ff4
Merge branch 'master' into node-transactions-snapshots-types
nickeskov Oct 27, 2023
12a4011
Merge branch 'node-transactions-snapshots-types' into replace-to-snap…
nickeskov Oct 27, 2023
d03736d
Merge branch 'replace-to-snapshot-applier' into add-snapshots-starage
Anton-Rampage Oct 27, 2023
982fe0a
* Commented invoke snapshots, import ok (#1165)
esuwu Oct 29, 2023
d664e80
Added asset script special snapshot
esuwu Oct 29, 2023
4c60e63
Merge branch 'master' into node-transactions-snapshots-types
esuwu Oct 29, 2023
d2dc9ba
Added internal snapshot for script for issue tx
esuwu Oct 30, 2023
2487314
add tx status snapshot to proto func
Anton-Rampage Oct 30, 2023
5b48496
Merge branch 'node-transactions-snapshots-types' into add-snapshots-s…
Anton-Rampage Oct 30, 2023
bb0a9ee
remove unnecessary changes
Anton-Rampage Oct 30, 2023
80ec830
fix test
Anton-Rampage Oct 30, 2023
d525410
Separated internal tx snapshots.
nickeskov Oct 30, 2023
73d6e88
Reduced 'internalSnapshot' interface, removed unnecessary code.
nickeskov Oct 30, 2023
4574336
Merge branch 'node-transactions-snapshots-types' into add-snapshots-s…
Anton-Rampage Oct 31, 2023
198d1b0
Merge branch 'add-snapshots-starage' into add-snapshot-network-messages
Anton-Rampage Nov 3, 2023
f5916f0
add new add block with snapshot
Anton-Rampage Nov 23, 2023
72ee37e
Merge branch 'master' into add-snapshot-network-messages
Anton-Rampage Nov 23, 2023
bce2fa1
add light node
Anton-Rampage Dec 12, 2023
b143d6d
Merge branch 'master' into add-snapshot-network-messages
Anton-Rampage Dec 12, 2023
c9ec17d
fix linter issue
Anton-Rampage Dec 12, 2023
c3dbeb2
fix tests
Anton-Rampage Dec 12, 2023
e22129d
fix ng state
Anton-Rampage Dec 21, 2023
f34e73c
Merge branch 'master' into add-snapshot-network-messages
Anton-Rampage Dec 25, 2023
d0e2fcd
fix some bugs
Anton-Rampage Dec 25, 2023
bb1a7f0
Merge branch 'master' into add-snapshot-network-messages
nickeskov Dec 25, 2023
3aa6085
Merge branch 'master' into add-snapshot-network-messages
nickeskov Jan 10, 2024
4d9d311
Merge fix
nickeskov Jan 10, 2024
9d3acdc
Merge branch 'master' into add-snapshot-network-messages
Anton-Rampage Jan 12, 2024
ba7a684
fix issues
Anton-Rampage Jan 16, 2024
9b944fd
fix tests
Anton-Rampage Jan 16, 2024
e453653
Merge branch 'master' into add-snapshot-network-messages
Anton-Rampage Jan 16, 2024
9d038dd
fix itests
Anton-Rampage Jan 16, 2024
b9d81c9
Merge branch 'master' into add-snapshot-network-messages
nickeskov Jan 24, 2024
196f52b
Merge branch 'master' into add-snapshot-network-messages
alexeykiselev Jan 25, 2024
c0d0310
add add block with snpashots and new states for snapshots
Anton-Rampage Jan 25, 2024
3d7d7b0
fix test
Anton-Rampage Jan 25, 2024
e239afb
Merge branch 'master' into add-snapshot-network-messages
nickeskov Jan 25, 2024
cf743d5
Add snapshot hash check for 'txAppender.appendBlock'.
nickeskov Jan 25, 2024
cc643a2
Timeout tasks for wait snapshot states of FSM can be cancelled.
nickeskov Jan 26, 2024
ee6d3d4
Merge branch 'master' into add-snapshot-network-messages
nickeskov Jan 26, 2024
ec69595
Merge branch 'master' into add-snapshot-network-messages
nickeskov Jan 26, 2024
23daf04
Merge branch 'master' into add-snapshot-network-messages
alexeykiselev Jan 29, 2024
157625c
remove copypasts
Anton-Rampage Jan 29, 2024
388a770
Fixed bug in 'MicroBlockCache.GetSnapshot'.
nickeskov Jan 30, 2024
38aab2a
Add block snapshots as an optional return parameter for 'newBlocks.cu…
nickeskov Jan 30, 2024
dd7c9bf
move snapshot requests to defer
Anton-Rampage Jan 30, 2024
caac645
Merge branch 'master' into add-snapshot-network-messages
nickeskov Jan 30, 2024
3a2ea69
Refactor a bit 'newBlocks.current'.
nickeskov Jan 30, 2024
a54c6d1
Merge branch 'master' into add-snapshot-network-messages
nickeskov Feb 1, 2024
a130d11
Merge branch 'master' into add-snapshot-network-messages
nickeskov Feb 7, 2024
29b3d76
Merge branch 'master' into add-snapshot-network-messages
nickeskov Feb 8, 2024
d4db37f
Linter fixes.
nickeskov Feb 8, 2024
519e7e0
Merge branch 'master' into add-snapshot-network-messages
alexeykiselev Feb 9, 2024
8f39c8f
Merge branch 'master' into add-snapshot-network-messages
nickeskov Feb 9, 2024
741c1e5
Merge branch 'master' into add-snapshot-network-messages
alexeykiselev Feb 10, 2024
b88491d
Merge branch 'master' into add-snapshot-network-messages
alexeykiselev Feb 12, 2024
a4f1beb
Merge branch 'master' into add-snapshot-network-messages
nickeskov Feb 12, 2024
76bf98b
Remove irrelevant TODO.
nickeskov Feb 12, 2024
b88baa4
Merge branch 'master' into add-snapshot-network-messages
alexeykiselev Feb 13, 2024
aece39f
Merge branch 'master' into add-snapshot-network-messages
alexeykiselev Feb 14, 2024
74db53d
Merge branch 'master' into add-snapshot-network-messages
alexeykiselev Feb 15, 2024
992e534
Merge branch 'master' into add-snapshot-network-messages
alexeykiselev Feb 15, 2024
3c118c6
fix channel size for proto msgs
Anton-Rampage Feb 19, 2024
5c1be47
Merge branch 'master' into add-snapshot-network-messages
Anton-Rampage Feb 19, 2024
aefa542
Fix light node fee distribution (#1341)
nickeskov Feb 19, 2024
17a66f0
fix other channel size
Anton-Rampage Feb 21, 2024
df1ae2f
fix state name
Anton-Rampage Feb 21, 2024
ca67c9c
Merge branch 'master' into add-snapshot-network-messages
nickeskov Feb 21, 2024
313d70d
Add 'cleanupBeforeTransition' deferred calls for 'WaitMicroSnapshotSt…
nickeskov Feb 22, 2024
47370b5
Simplified a bit 'syncSkipMessageList' for SYNC in full mode
nickeskov Feb 22, 2024
61211b5
Merge branch 'master' into add-snapshot-network-messages
nickeskov Feb 22, 2024
20b96f4
Merge branch 'master' into add-snapshot-network-messages
nickeskov Feb 22, 2024
6047df9
fix microBlockSnapshot state name
Anton-Rampage Feb 27, 2024
a600bce
initialize snapshot chache
Anton-Rampage Feb 28, 2024
b934eeb
fix linter
Anton-Rampage Feb 28, 2024
7b05587
Merge branch 'master' into add-snapshot-network-messages
Anton-Rampage Feb 28, 2024
15c658c
fix linters
Anton-Rampage Feb 28, 2024
a290f44
Add snapshots to importer (#1290)
esuwu Mar 1, 2024
0040d16
Merge branch 'master' into add-snapshot-network-messages
alexeykiselev Mar 1, 2024
d81a371
Merge branch 'master' into add-snapshot-network-messages
alexeykiselev Mar 4, 2024
c755679
Fix gosec issues.
alexeykiselev Mar 4, 2024
7696ebb
return to ng if failed to apply block/microblock
Anton-Rampage Mar 5, 2024
34c943d
add Score in WaitSnapshots States
Anton-Rampage Mar 12, 2024
b0f58db
Merge branch 'master' into add-snapshot-network-messages
Anton-Rampage Mar 14, 2024
a24039e
fix Score check func and reduce timeouts
Anton-Rampage Mar 15, 2024
8ac321f
increse message max lenght and allow negative in/out in lease balance…
Anton-Rampage Mar 19, 2024
65cffd4
fix asset volume decode/encode
Anton-Rampage Apr 3, 2024
d848697
Merge branch 'master' into add-snapshot-network-messages
Anton-Rampage Apr 3, 2024
45b1c2b
fix linters
Anton-Rampage Apr 4, 2024
2f5445a
move ask blockIDs
Anton-Rampage Apr 12, 2024
6e8a43e
Merge branch 'master' into add-snapshot-network-messages
Anton-Rampage Apr 12, 2024
09a69f8
fix linters
Anton-Rampage Apr 12, 2024
8dbe7ec
Fix log records.
nickeskov Apr 13, 2024
95cae23
Fix 'TestTxSnapshotHasher'.
nickeskov Apr 13, 2024
429030e
Add new testcase for 'TestTxSnapshotMarshalToPBAndUnmarshalFromPB'.
nickeskov Apr 13, 2024
ce73b95
Remove unnecessary closure from 'selectImporter' im 'cmd/importer/imp…
nickeskov Apr 15, 2024
875ebd8
Optimized a bit 'BlockSnapshot.ToProtobuf'.
nickeskov Apr 15, 2024
1f9adbd
Optimized a bit 'NGState.checkAndAppendMicroBlock'.
nickeskov Apr 16, 2024
5364dde
Optimized a bit 'WaitMicroSnapshotState.checkAndAppendMicroBlock'.
nickeskov Apr 16, 2024
0ad28e3
rewrite ApplyFromFile in importer and fix some issues
Anton-Rampage Apr 19, 2024
3a1dadb
Remove 'nolint' for 'ProtocolVersion' func.
nickeskov Apr 19, 2024
fb11dd3
Add more logs in 'ApplyFromFile' func.
nickeskov Apr 19, 2024
4b82cd2
Add sanity checks for 'ImportParams'.
nickeskov Apr 19, 2024
c20d60b
Properly handle error in 'processScoreAfterApplyingOrReturnToNG'.
nickeskov Apr 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/chaincmp/chaincmp.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func run() error {
for i, u := range other {
u, err = checkAndUpdateURL(u)
if err != nil {
zap.S().Error("Incorrect reference's URL: %s", err.Error())
zap.S().Errorf("Incorrect reference's URL: %s", err.Error())
return errInvalidParameters
}
other[i] = u
Expand Down
5 changes: 3 additions & 2 deletions cmd/convert/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import (
"flag"
"os"

"github.com/wavesplatform/gowaves/pkg/proto"
"go.uber.org/zap"

"github.com/wavesplatform/gowaves/pkg/proto"
)

var (
Expand All @@ -28,7 +29,7 @@ func main() {
zap.S().Fatal("please, provide scheme-byte argument")
}
if len(*schemeByte) != 1 {
zap.S().Fatal("invalid scheme-byte argument %q", *schemeByte)
zap.S().Fatalf("invalid scheme-byte argument %q", *schemeByte)
}
scheme := []byte(*schemeByte)[0]
switch *command {
Expand Down
Loading
Loading