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

tx_field tables #2849

Merged
merged 6 commits into from
Sep 8, 2021
Merged

tx_field tables #2849

merged 6 commits into from
Sep 8, 2021

Conversation

jannotti
Copy link
Contributor

@jannotti jannotti commented Sep 7, 2021

Drive the checking of whether tx_field can set a particular field in a table-driven way, rather than by simple switch. This is cleaner as we add functionality in later versions, and will allow generating the spec for tx_field.

@jannotti jannotti self-assigned this Sep 7, 2021
@jannotti jannotti marked this pull request as ready for review September 8, 2021 00:35
@codecov-commenter
Copy link

codecov-commenter commented Sep 8, 2021

Codecov Report

Merging #2849 (553b63e) into master (cde7eed) will increase coverage by 0.05%.
The diff coverage is 96.15%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2849      +/-   ##
==========================================
+ Coverage   47.28%   47.33%   +0.05%     
==========================================
  Files         351      351              
  Lines       56488    56506      +18     
==========================================
+ Hits        26708    26745      +37     
+ Misses      26765    26752      -13     
+ Partials     3015     3009       -6     
Impacted Files Coverage Δ
data/transactions/logic/assembler.go 80.66% <0.00%> (ø)
data/transactions/logic/doc.go 82.75% <ø> (ø)
data/transactions/logic/fields.go 83.58% <ø> (ø)
rpcs/blockService.go 53.53% <0.00%> (ø)
data/transactions/logic/eval.go 89.49% <100.00%> (+0.60%) ⬆️
ledger/blockqueue.go 82.18% <0.00%> (-1.73%) ⬇️
network/requestTracker.go 70.25% <0.00%> (-0.87%) ⬇️
catchup/service.go 69.35% <0.00%> (ø)
network/wsNetwork.go 61.09% <0.00%> (ø)
ledger/acctupdates.go 62.63% <0.00%> (+0.08%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cde7eed...553b63e. Read the comment docs.

@@ -18,7 +18,7 @@ Ops have a 'cost' of 1 unless otherwise specified.
- SHA256 hash of value X, yields [32]byte
- **Cost**:
- 7 (LogicSigVersion = 1)
- 35 (2 <= LogicSigVersion <= 5)
- 35 (LogicSigVersion => 2)
Copy link
Contributor

Choose a reason for hiding this comment

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

>= would be more conventional, and less confused with an arrow?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh, geez, you're right of course. thanks.

@jannotti jannotti merged commit a3153d8 into algorand:master Sep 8, 2021
@jannotti jannotti deleted the txfield-tables branch September 8, 2021 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants