-
Notifications
You must be signed in to change notification settings - Fork 10
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
Local state index #553
Open
sideninja
wants to merge
187
commits into
main
Choose a base branch
from
feature/state
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Local state index #553
Changes from all commits
Commits
Show all changes
187 commits
Select commit
Hold shift + click to select a range
920da4b
add atree ledger implementation in pebble
sideninja e2d86ce
simple state init implementation
sideninja 6e2bc20
creating custom block context wip
sideninja a4d7ff3
add precompiled calls to receipt
sideninja d45f771
Merge branch 'gregor/local-state/database' into gregor/local-state/init
sideninja 5dac5b0
use precompiles in the block context
sideninja d81d50c
Merge branch 'gregor/local-state/database' into gregor/local-state/init
sideninja e59015d
add precompiled calls to receipt factory
sideninja 6f4894f
update to specific flow-go with extended events
sideninja 70ae5f1
add new fields to receipt
sideninja 91a6c32
Merge branch 'main' into gregor/local-state/tx-event-extended
sideninja 12e8d3a
Merge branch 'gregor/local-state/tx-event-extended' into gregor/local…
sideninja c4be2fa
refactor the state context
sideninja d82d0c4
refactor state factory
sideninja 527acba
add transaction to geth transaction api
sideninja a848b19
use geth transaction
sideninja 1ec177a
update state execute
sideninja 0bc496e
remove unneeded api from transaction
sideninja bfc26a4
update state db for direct call and tx
sideninja d62a3f2
go tidy
sideninja 49e7851
add state engine to bootstrap
sideninja 11aca89
add state engine
sideninja 2cb48b5
add integration state test
sideninja 9aaec7e
skip tx validation on emulator
sideninja 9642317
Merge branch 'main' into gregor/local-state/main
sideninja 265dfe1
add bootstrap state index
sideninja 8d42a5f
update changed type
sideninja 496a0ef
export engines and storage
sideninja ea5d95a
expose client
sideninja 0877c0d
remove transaction random and coinbase
sideninja 07a8aec
update coinbase and rand
sideninja b96000d
expose requester
sideninja c7ba551
formatting
sideninja daab1f8
temp debug
sideninja 27e885d
improve test with new bootstrap
sideninja b5f95cb
add compare receipts
sideninja c3e4265
handle compare of results
sideninja df2b6e3
fix test bootstrap
sideninja a2fc6e9
add error message on equal compare
sideninja 471c799
add todo
sideninja ee2988a
wip test state
sideninja c084452
cleanup state
sideninja 6803cad
temp disable hash check
sideninja d57da16
bugfix index usage
sideninja f7f6305
add logger
sideninja 107cdf1
update nonce in test
sideninja 5f3ff04
Merge branch 'main' into gregor/local-state/main
sideninja bb91214
add state index engine to bootstrap
sideninja 2b92d4f
use chain id
sideninja 20565a0
fix bug with index
sideninja c2af01b
refactor the state and engine
sideninja 42708f0
remove old comment
sideninja 5f3fd1c
update api
sideninja 9504e97
update gas used
sideninja e64b3ca
add height to key id
sideninja 71986cd
refactor ledger id
sideninja 4bcad89
rename ledger to register index
sideninja 736a841
lock set height
sideninja 1fd3e20
add basic register test
sideninja 38aed72
change creation of register storage
sideninja 78df44b
remove logs
sideninja fa46656
multiple registers test
sideninja c5f3fb5
add register test at later heights
sideninja 374d56d
test historic balance
sideninja c67a2de
remove todo
sideninja 4eb1229
nicer syntax
sideninja 27ea12e
Merge branch 'gregor/local-state/engine' into gregor/local-state/hist…
sideninja d2b8c85
rename evm and remote
sideninja 4554f46
move evm interface and rename file
sideninja e800a25
move validation and context inside the state
sideninja e039861
add local client
sideninja 3ba5ba2
add support for calls and estimate
sideninja 460cde6
implement call on state
sideninja 584029f
add client handler
sideninja edf82ef
add client handler balancing remote and local
sideninja b2bb7b0
change local client creation
sideninja e3490c3
update local client syntax
sideninja f851e83
bootstrap client handler
sideninja 8613437
update test apis
sideninja 23533df
don't use height with slab indexes
sideninja 56e4bca
Merge branch 'gregor/local-state/main' into gregor/local-state/integrate
sideninja aded8e3
handle failed results
sideninja ec6d724
handle failed results
sideninja 6cf64e4
check errors by value
sideninja cf9c41d
add state re-execution height
sideninja 8ed258d
add evm height
sideninja 2a73273
add pebble implementation for block state
sideninja d912624
update block mock
sideninja 4a7ca08
fend for receipt status
sideninja 0280909
update executed block height
sideninja 80e698f
wip api changes executed height
sideninja 550151c
rename block latest executed and indexed heights
sideninja 7d2d5d1
use latest executed height
sideninja 6829472
return data nil handle
sideninja a4e896f
add ms response time
sideninja 0ddcaa6
use latest executed height on client init
sideninja dd9f945
handle estimate failures
sideninja 832c39d
use specific height, don't use latest height since the local and remo…
sideninja e8ef351
fix tests
sideninja f4c0b83
Merge branch 'main' into gregor/local-state/main
sideninja 2ca4b19
Merge branch 'gregor/local-state/main' into gregor/local-state/state
sideninja 4e7aab7
change evm client height from int to uint
sideninja d1651c4
update block hash resolver change
sideninja 935f68e
client handler api updates
sideninja 8584fa7
update remote client changes
sideninja 1aa026c
return remote values
sideninja f6c4f74
improve time output to ms
sideninja 14ba53b
added cadence arch and environment tests
sideninja 2150fb5
update flow-go with fixed replayer
sideninja 675c7e5
update flow-go
sideninja cf582e6
add todo comments
sideninja a4e500c
extend storage contract to have logs emitted and improve the test
sideninja c20e766
fix test issues and add comment
sideninja d07b8ff
update comment
sideninja d0b5da8
update flow-go to specific version
sideninja ce4eb30
update test with changes
sideninja 5e4201f
remove legacy decode done in flow-go
sideninja 5fb3080
Update README.md
sideninja 4960b86
Merge branch 'gregor/local-state/integrate' into gregor/local-state/main
sideninja 8c319c2
Merge branch 'gregor/local-state/state' into gregor/local-state/main
sideninja 2d6477c
comment out
sideninja fde99b6
comment out
sideninja 0d6af5e
return errs
sideninja da2f408
Merge remote-tracking branch 'origin/gregor/local-state/state' into g…
sideninja 05b4f64
fix test changes in contract storage.sol
sideninja 846283c
fix test changes in contract storage.sol
sideninja 24243a3
Merge branch 'gregor/local-state/state' into gregor/local-state/main
sideninja 20d48a3
add register validator
sideninja 703e692
remove uneeded block fetch
sideninja b1d62e0
Merge branch 'gregor/local-state/integrate' into gregor/local-state/main
sideninja 8723c83
Merge branch 'gregor/local-state/main' into gregor/local-state/check
sideninja a0881de
Merge branch 'gregor/local-state/main' into feature/state
sideninja 6afb1db
Merge branch 'main' into gregor/local-state/state
sideninja dc3a030
Merge branch 'main' into gregor/local-state/integrate
sideninja 65707be
Merge branch 'main' into gregor/local-state/historic
sideninja 169c245
Merge branch 'main' into gregor/local-state/engine
sideninja f44b425
Merge branch 'main' into gregor/local-state/check
sideninja 1d9e57f
add typed error and comments
sideninja a959e64
add option to check register to config
sideninja 3f0f483
use atree type
sideninja 0d58353
log wrong register
sideninja 18e14c0
clear data in map after block validation
sideninja 2ba6449
Merge branch 'gregor/local-state/engine' into feature/state
sideninja 1059dfb
Merge branch 'main' into gregor/local-state/historic
sideninja 4cb9036
Merge remote-tracking branch 'origin/gregor/local-state/historic' int…
sideninja 41c5a0c
add log
sideninja d5874db
Merge branch 'gregor/local-state/historic' into feature/state
sideninja 728923e
use remote client for height and add comment
sideninja 61b9e0e
restrict calling latest evm height
sideninja f75c2c9
remove receipt match
sideninja 73ea0a5
Merge branch 'gregor/local-state/integrate' into feature/state
sideninja ee67501
Merge branch 'gregor/local-state/integrate' into gregor/local-state/s…
sideninja cbb422d
Merge branch 'gregor/local-state/check' into feature/state
sideninja 19cfad7
fix errors handling
sideninja 4830bf1
fix error
sideninja 8a217bb
move validator
sideninja b8e29d3
fix usage of exe client
sideninja dacc700
update new state
sideninja 4d501de
fix wrong balance encoding
sideninja 661c705
use execution client
sideninja 5d8701c
update validation logic
sideninja 59b21ae
fix bootstrap logic
sideninja ac776dd
sync up to missed blocks
sideninja 3138a82
better handle batch close
sideninja 252d699
use batch in the handling of blocks exe
sideninja a3c623d
support usage of batch
sideninja d56cc9d
update api usage
sideninja b97ce67
update api usage
sideninja 14ab876
fix state test
sideninja 02c5e42
fix state test
sideninja 6e24eb6
update flow-go
sideninja 015f11a
fix test api change
sideninja 57f7469
Merge branch 'feature/state' into gregor/local-state/progress
sideninja 35f011a
add init latest executed height
sideninja c83ed0d
Merge remote-tracking branch 'origin/gregor/local-state/progress' int…
sideninja 01ee9ef
revert flow-go ver
sideninja 84b6d1c
revert flow-go ver
sideninja f02a989
add client handler test
sideninja fa1c64d
parse errors
sideninja 89f8fca
handle known errors in client
sideninja 11833eb
Merge pull request #559 from onflow/gregor/local-state/error-handle-fix
sideninja 4e33340
improve comparing res
sideninja 972e2ed
Merge pull request #561 from onflow/gregor/local-state/check-values
sideninja 096e754
patch if
sideninja c8b0815
rename remote ledger
sideninja f96dcb7
add more details to logs
sideninja 16798f2
Merge pull request #556 from onflow/gregor/local-state/progress
sideninja 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
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.
I have seen
b.blocks.LatestEVMHeight()
being replaced sometimes byb.blocks.LatestIndexedHeight()
and sometimes byb.blocks.LatestExecutedHeight()
. Which should be used in which situation?