-
Notifications
You must be signed in to change notification settings - Fork 2k
CHIA-3107 Simplify test_basic_coin_store #19709
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: main
Are you sure you want to change the base?
CHIA-3107 Simplify test_basic_coin_store #19709
Conversation
block.get_included_reward_coins(), | ||
tx_additions, | ||
tx_removals, | ||
block.height, block.foliage_transaction_block.timestamp, reward_coins, tx_additions, tx_removals |
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.
This is just a formatting change, right?
I think the existing formatting is preferred. I don't think this is a simplification. Is it?
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'm changing this call to avoid recomputing reward_coins
.
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.
block.height, block.foliage_transaction_block.timestamp, reward_coins, tx_additions, tx_removals | |
block.height, | |
block.foliage_transaction_block.timestamp, | |
reward_coins, | |
tx_additions, | |
tx_removals, |
assert block.foliage_transaction_block is not None | ||
assert block.foliage_transaction_block is not None | ||
await coin_store.new_block( | ||
block.height, block.foliage_transaction_block.timestamp, reward_coins, tx_additions, tx_removals |
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.
This is just a formatting change, right?I think the existing formatting is preferred.
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'm changing this call to avoid recomputing reward_coins
.
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 see, the reward_coins
parameter. It's harder to spot when you change formatting at the same time
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.
block.height, block.foliage_transaction_block.timestamp, reward_coins, tx_additions, tx_removals | |
block.height, | |
block.foliage_transaction_block.timestamp, | |
reward_coins, | |
tx_additions, | |
tx_removals, |
2bab407
to
bf31fea
Compare
bf31fea
to
442c81d
Compare
Purpose:
Simplify
test_basic_coin_store
by skipping non transaction blocks where appropriate, leveragingadditions_and_removals
instead of the combination ofget_name_puzzle_conditions
andtx_removals_and_additions
, and avoiding to recompute reward coins.Current Behavior:
New Behavior:
Testing Notes: