If you construct a Block object and pass a string as the block argument, the base class constructor BlockchainObject.__init__() does not set the 'id' attribute. This causes the Block constructor to behave differently when passing the block number argument as an integer VS a string.
In my case, this issue cases my BitShares blockchain explorer to miss caching some blocks.
Issue
If you construct a
Block
object and pass a string as theblock
argument, the base class constructorBlockchainObject.__init__()
does not set the'id'
attribute. This causes theBlock
constructor to behave differently when passing the block number argument as an integer VS a string.In my case, this issue cases my BitShares blockchain explorer to miss caching some blocks.