Move the asserts up and make the append() append only if the transaction is in state collecting.
Move the asserts up and make the append() append only if the transaction is in state collecting.

perovic/cling,marsupial/cling,root-mirror/cling,marsupial/cling,karies/cling,karies/cling,root-mirror/cling,root-mirror/cling,karies/cling,root-mirror/cling,perovic/cling,root-mirror/cling,karies/cling,marsupial/cling,perovic/cling,karies/cling,marsupial/cling,marsupial/cling,perovic/cling,karies/cling,root-mirror/cling,perovic/cling,marsupial/cling