-
Notifications
You must be signed in to change notification settings - Fork 108
Standalone pact-replay tool #2207
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
base: pp/evm
Are you sure you want to change the base?
Conversation
6f6939f
to
394e7ea
Compare
394e7ea
to
fcc8996
Compare
cwtools/pact-replay/PactReplay.hs
Outdated
|
||
liftIO $ readIORef failedOnChainRef | ||
when anyFailed $ | ||
error "some blocks failed" |
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.
maybe count the number of failed blocks in one chunk.
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'd love to count the total number of failures, that's a great idea.
(Codec (runPutS . encodeBlockHash) (runGetS decodeBlockHash)) | ||
["BlockHeader", cidNs, "rank"] | ||
|
||
!db = BlockHeaderDb cid |
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.
Is the strictness annotation not needed anymore?
src/Chainweb/Chainweb.hs
Outdated
, _chainwebLogger = logger | ||
, _chainwebPeer = peerRes | ||
, _chainwebManager = mgr | ||
-- , _chainwebPactData = pactData |
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.
-- , _chainwebPactData = pactData |
994c512
to
760f6a0
Compare
Change-Id: Id0000000fbd4c58b18ba9e4063c224da92b97b43
Change-Id: Id00000003f0e000a1190670dcce027a952183462
Change-Id: Id0000000d7901e0181766a784bb673ffabd8aa71
Change-Id: Id0000000c2ac1ace6bc1bbb8d21dfdc89e2b7ed9
Change-Id: Id0000000e02e4ac227e15f0d267484f3955af378
Otherwise the migration to BlockHistory2 happens before that table is even created on a mainnet db. Ideally, we probably just delete withPactService. Change-Id: Id000000076cfe813346a9b6fe0ae63c3237d5b03
Change-Id: Id000000074e2d41ff0d0254f3d31e9c712adc6e5
Change-Id: Id0000000255a7e431b00beb8388a10b63f4c7904
Unfortunately we write to rocksdb even when it's not necessary sometimes as an init step. c.f. initBlockHeaderDb Change-Id: Id00000005183459e1775505421e130ea688c3c9c
Change-Id: Id0000000b3bd3a0c6c952ae940e781b245af51d9
1. BlockHistoryMigration starts rewinding to the final block in BlockHistory and setting the consensus state to that block, as part of cleanup. (needs tests) 2. Many utilities moved from ChainwebPactDb to Backend.Utils. (these are not specific to PactDb though they are related to storage) 3. Stop maintaining a "latest" in ConsensusState table. This is only the latest row in BlockHistory table now. Change-Id: Id00000001c55cdeb49e0280cadaf17bb040a381f
Change-Id: Id000000068eb15bd1ff51bc3590ac087c73da495
760f6a0
to
7122976
Compare
No description provided.