-
Notifications
You must be signed in to change notification settings - Fork 9
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
[Protobuf] Working prototype #85
Merged
Merged
Changes from 21 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
d97753e
actually add protobuf
rpl-ffl 1fb0b27
squash and sign
rpl-ffl d90279a
revert extraneous line
rpl-ffl c052aa4
remove extraneous comments + gofmt
rpl-ffl 91394cb
revert uin256, to be separate PR
rpl-ffl 2fe8222
fix extraneous Balance
rpl-ffl 3416551
remove extraneous uint256
rpl-ffl faeb1eb
decode reverts from uint256 to bigint
rpl-ffl 64f8e8e
remove extranous uint256 import
rpl-ffl 0f6a377
Cleaner GetBlobHash clauses
rpl-ffl e0d0de9
remove extraneous dangling error
rpl-ffl ced5262
cleaner explanation when look up initcodehash
rpl-ffl 94a12f2
explain random
rpl-ffl e655a88
remove substate dump
rpl-ffl fc7756d
revert extraneous changes
rpl-ffl bf429ad
Add protobuf encoding test
rpl-ffl 32ce417
encoding now works
rpl-ffl fd2177c
resolve merge conflict decoderFunc -> decodeFunc
rpl-ffl 942e458
gofmt
rpl-ffl 95d2398
refactor types/utils.go away
rpl-ffl 9485797
protobuf/decode.go
rpl-ffl c798d75
revert go.mod chnages, geth1.14.8 go1.21
rpl-ffl 79974a4
defensive encoding check removed
rpl-ffl eeda2a4
remove geth dependency
rpl-ffl 50d95ea
Apply suggestions from code review
rpl-ffl a660d9b
dbGetCode -> getCodeFunc
rpl-ffl e68fe3c
encode -> toProtobuf
rpl-ffl d12af8c
encode -> toProtobufOOO for missing func
rpl-ffl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,29 @@ | ||
module github.com/Fantom-foundation/Substate | ||
|
||
go 1.21 | ||
go 1.22 | ||
|
||
toolchain go1.22.4 | ||
rpl-ffl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
require ( | ||
github.com/syndtr/goleveldb v1.0.1-0.20210305035536-64b5b1c73954 | ||
github.com/urfave/cli/v2 v2.24.4 | ||
golang.org/x/crypto v0.17.0 | ||
github.com/ethereum/go-ethereum v1.14.9 | ||
github.com/golang/protobuf v1.5.4 | ||
github.com/holiman/uint256 v1.3.1 | ||
github.com/stretchr/testify v1.9.0 | ||
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 | ||
github.com/urfave/cli/v2 v2.25.7 | ||
golang.org/x/crypto v0.22.0 | ||
google.golang.org/protobuf v1.34.2 | ||
) | ||
|
||
require ( | ||
github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect | ||
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/golang/snappy v0.0.3 // indirect | ||
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect | ||
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/russross/blackfriday/v2 v2.1.0 // indirect | ||
github.com/stretchr/testify v1.9.0 // indirect | ||
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect | ||
golang.org/x/sys v0.15.0 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
golang.org/x/sys v0.22.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First I think implementation details does not belong to a func comment.
Second, do you think we should have this condition? I think this belongs into the factory func.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Defensive defaults now removed in favor of having
SetSubstate("default")
in all public constructor ofsubstateDB
.79974a4
I understand the performance reason to do this, but this leaves direct instantiation of
&substateDB{...}
(in tests, for example) to panic if encoding is never set. Any advice on this?