Skip to content

development: tool to convert validated blocks.#5048

Merged
winder merged 3 commits into
algorand:masterfrom
winder:will/vb-converter
Jan 26, 2023
Merged

development: tool to convert validated blocks.#5048
winder merged 3 commits into
algorand:masterfrom
winder:will/vb-converter

Conversation

@winder
Copy link
Copy Markdown
Contributor

@winder winder commented Jan 24, 2023

Summary

Helper command to assist with converting files during development.

Comment on lines +1086 to +1087
consensusParams := config.Consensus[sDelta.Hdr.CurrentProtocol]
response, err := StateDeltaToLedgerDelta(sDelta, consensusParams)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Eric-Warehime do you happen to know if this simplification is valid? I can revert if you aren't sure.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it looks correct to me.

return config.Consensus[blockhdr.UpgradeState.CurrentProtocol], nil

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 24, 2023

Codecov Report

Merging #5048 (804be17) into master (a6eece5) will increase coverage by 0.02%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master    #5048      +/-   ##
==========================================
+ Coverage   53.56%   53.59%   +0.02%     
==========================================
  Files         430      430              
  Lines       54095    54092       -3     
==========================================
+ Hits        28978    28989      +11     
+ Misses      22869    22862       -7     
+ Partials     2248     2241       -7     
Impacted Files Coverage Δ
daemon/algod/api/server/v2/handlers.go 0.82% <0.00%> (+<0.01%) ⬆️
daemon/algod/api/server/v2/delta.go 71.71% <100.00%> (+0.58%) ⬆️
ledger/testing/randomAccounts.go 56.26% <0.00%> (-0.62%) ⬇️
catchup/service.go 69.32% <0.00%> (-0.49%) ⬇️
network/wsPeer.go 68.32% <0.00%> (-0.48%) ⬇️
ledger/acctupdates.go 69.24% <0.00%> (-0.25%) ⬇️
ledger/acctonline.go 79.16% <0.00%> (+0.52%) ⬆️
cmd/tealdbg/debugger.go 72.44% <0.00%> (+0.78%) ⬆️
catchup/peerSelector.go 100.00% <0.00%> (+1.04%) ⬆️
ledger/tracker.go 75.94% <0.00%> (+1.68%) ⬆️
... and 2 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@winder winder marked this pull request as ready for review January 24, 2023 15:55
@winder winder merged commit 008d23c into algorand:master Jan 26, 2023
@winder winder deleted the will/vb-converter branch January 26, 2023 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants