sawtooth-core
sawtooth-core copied to clipboard
Batches submitted via REST API during genesis are lost
When a batch is submitted via the REST API to a validator that is processing the genesis block, it will be lost.
Steps to reproduce:
- Create a genesis block with at least one sawtooth settings transaction
- Start a validator process
- Start a REST API process
- Submit an intkey transaction (via intkey load, for example).
- Start {{tp_settings}}
- Start {{tp_intkey_python}}
At this point, the genesis block will be created, but the intkey transaction(s) will not be processed.
To fix this, either:
- the batch should be preserved in a pending queue (which would require journal being active)
- do not accept client messages until the genesis block is complete (probably the most desirable)
(Duplicated by https://jira.hyperledger.org/browse/STL-508)