TYPE
block
blockA test block builder; i.e. a builder for test blockchain blocks.
A test block consists of a list of test transactions that are executed when the block is built. A test transaction consists of a list of test operation calls, and a list of signing keypairs.
Test block timestamps
The timestamps of Rell test blocks are deterministic, and determined by the following rules:
- If the next block's timestamp was set explicitly via
rell.test.set_next_block_time()orrell.test.set_next_block_time_delta(), that timestamp is used for the next block, and is then discarded (and will not be used by subsequent blocks). - If the next block's timestamp was not set explicitly, and there is a previous block, the next
block's timestamp is the timestamp of the previous block plus the block interval
(
rell.test.block_interval, which can be set withrell.test.set_block_interval()). - If the next block's timestamp was not set explicitly, and there is no previous block, the
timestamp of the next (and first) block will be
2020-01-01 00:00:00 UTC.
See Also
- Builder pattern - Wikipedia
rell.test.tx- Rell Standard Libraryrell.test.op- Rell Standard Libraryrell.test.set_next_block_time()- Rell Standard Libraryrell.test.set_next_block_time_delta()- Rell Standard Libraryrell.test.block_interval- Rell Standard Libraryrell.test.set_block_interval()- Rell Standard Libraryrell.test.block- Chromia Documentation
Since
0.10.4
Methods
© 2026 Chromia