Skip to content

Commit 4022e7e

Browse files
committed
slight improvement of BlockTools
1 parent 9adfdc6 commit 4022e7e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

chia/simulator/block_tools.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,8 @@ def get_consecutive_blocks(
796796
for coin in b.get_included_reward_coins():
797797
if coin.puzzle_hash == self.farmer_ph:
798798
available_coins.append(coin)
799+
if coin.puzzle_hash == self.pool_ph:
800+
available_coins.append(coin)
799801
print(
800802
f"found {len(available_coins)} reward coins in existing chain."
801803
"for simplicity, we assume the rewards are all unspent in the original chain"
@@ -1026,6 +1028,8 @@ def get_consecutive_blocks(
10261028
for coin in full_block.get_included_reward_coins():
10271029
if coin.puzzle_hash == self.farmer_ph:
10281030
pending_rewards.append(coin)
1031+
if coin.puzzle_hash == self.pool_ph:
1032+
pending_rewards.append(coin)
10291033
if full_block.is_transaction_block():
10301034
available_coins.extend(pending_rewards)
10311035
pending_rewards = []
@@ -1333,6 +1337,8 @@ def get_consecutive_blocks(
13331337
for coin in full_block.get_included_reward_coins():
13341338
if coin.puzzle_hash == self.farmer_ph:
13351339
pending_rewards.append(coin)
1340+
if coin.puzzle_hash == self.pool_ph:
1341+
pending_rewards.append(coin)
13361342
if full_block.is_transaction_block():
13371343
available_coins.extend(pending_rewards)
13381344
pending_rewards = []

0 commit comments

Comments
 (0)