In chain.py, validate_transaction(self, tx, temp_spent={}): , i print out the blknum, self.blocks, self.blocks[blknum] , transaction_set and txindex. This condition is fulfilled:
if txindex not in self.blocks[blknum].transaction_set:
print("txindex not in dictionary")
return
Full output of error:
blocknum 1
blocks {1: <plasma_core.block.Block object at 0x105b81fd0>}
self blocks <plasma_core.block.Block object at 0x105b81fd0>
transaction_set [<plasma_core.transaction.Transaction object at 0x105b81b38>]
txindex not in dictionary
Issue Type
Current Behavior
Call: omg sendtx 1000 0 0 0 0 0 0x0 0x4B3eC6c9dC67079E82152d6D55d8dd96a8e6AA26 2 0x0 0 3bb369fecdc16b93b99514d8ed9c2e87c5824cf4a6a98d2e8e91b7dd0c063304
In chain.py, validate_transaction(self, tx, temp_spent={}): , i print out the blknum, self.blocks, self.blocks[blknum] , transaction_set and txindex. This condition is fulfilled:
Expected Behavior
No error. txindex should be in transaction_set
Steps to Reproduce
Full output of error: blocknum 1 blocks {1: <plasma_core.block.Block object at 0x105b81fd0>} self blocks <plasma_core.block.Block object at 0x105b81fd0> transaction_set [<plasma_core.transaction.Transaction object at 0x105b81b38>] txindex not in dictionary
Command that caused error: omg sendtx 1000 0 0 0 0 0 0x0 0x4B3eC6c9dC67079E82152d6D55d8dd96a8e6AA26 2 0x0 0 3bb369fecdc16b93b99514d8ed9c2e87c5824cf4a6a98d2e8e91b7dd0c063304
Code that caused error: if txindex not in self.blocks[blknum].transaction_set: print("txindex not in dictionary") return
Suggested Fix
Motivation for Change
omg sendtx is not working. It needs to be fixed.
System Specs
pip freeze
):