fix issues
This commit is contained in:
parent
ec4a765ed6
commit
57632c9877
|
@ -270,7 +270,6 @@ class Mempool:
|
|||
for height in self.old_mempools.keys():
|
||||
if height > tip.height:
|
||||
old_spend_dict: Dict[bytes32, MempoolItem] = self.old_mempools[height]
|
||||
breakpoint()
|
||||
await self.add_old_spends_to_pool(new_pool, old_spend_dict)
|
||||
|
||||
await self.initialize_pool_from_current_pools(new_pool)
|
||||
|
|
|
@ -41,7 +41,7 @@ def mempool_assert_block_index_exceeds(condition: ConditionVarPair, unspent: Uns
|
|||
except ValueError:
|
||||
return Err.INVALID_CONDITION
|
||||
# + 1 because min block it can be included is +1 from current
|
||||
if mempool.header_block.height + 1 < expected_block_index:
|
||||
if mempool.header_block.height + 1 <= expected_block_index:
|
||||
return Err.ASSERT_BLOCK_INDEX_EXCEEDS_FAILED
|
||||
return None
|
||||
|
||||
|
@ -55,7 +55,7 @@ def mempool_assert_block_age_exceeds(condition: ConditionVarPair, unspent: Unspe
|
|||
expected_block_index = expected_block_age + unspent.confirmed_block_index
|
||||
except ValueError:
|
||||
return Err.INVALID_CONDITION
|
||||
if mempool.header_block.height + 1 < expected_block_index:
|
||||
if mempool.header_block.height + 1 <= expected_block_index:
|
||||
return Err.ASSERT_BLOCK_AGE_EXCEEDS_FAILED
|
||||
return None
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ class WalletTool:
|
|||
pubkey, secretkey = self.get_keys(puzzle_hash)
|
||||
puzzle = puzzle_for_pk(pubkey.serialize())
|
||||
if ConditionOpcode.CREATE_COIN not in condition_dic:
|
||||
condition_dic = {ConditionOpcode.CREATE_COIN: []}
|
||||
condition_dic[ConditionOpcode.CREATE_COIN] = []
|
||||
|
||||
output = ConditionVarPair(ConditionOpcode.CREATE_COIN, newpuzzlehash, amount)
|
||||
condition_dic[output.opcode].append(output)
|
||||
|
|
Loading…
Reference in New Issue