omg sendtx error
victoryeo opened this issue · 0 comments
Issue Type
[x] bug report
[ ] feature request
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:
if txindex not in self.blocks[blknum].transaction_set:
print("txindex not in dictionary")
return
Expected Behavior
No error. txindex should be in transaction_set
Steps to Reproduce
- omg deposit 100 0xfd02EcEE62797e75D86BCff1642EB0844afB28c7
- omg sendtx 1000 0 0 0 0 0 0x0 0x4B3eC6c9dC67079E82152d6D55d8dd96a8e6AA26 2 0x0 0 3bb369fecdc16b93b99514d8ed9c2e87c5824cf4a6a98d2e8e91b7dd0c063304
-
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
- python version: 3.6.5
- pyetherem version: n/a
- environment (output of running
pip freeze
): - operating system: mac os high sierra