(snapshot *state.Snapshot, timestampMS uint64)
| 40 | } |
| 41 | |
| 42 | func (bb *BlockBuilder) Start(snapshot *state.Snapshot, timestampMS uint64) error { |
| 43 | if timestampMS <= snapshot.Header.TimestampMs { |
| 44 | return fmt.Errorf("timestamp %d is not greater than prevblock timestamp %d", timestampMS, snapshot.Header.TimestampMs) |
| 45 | } |
| 46 | bb.snapshot = state.Copy(snapshot) |
| 47 | bb.snapshot.PruneNonces(timestampMS) |
| 48 | bb.timestampMS = timestampMS |
| 49 | bb.txs = nil |
| 50 | bb.runlimit = 0 |
| 51 | return nil |
| 52 | } |
| 53 | |
| 54 | var ( |
| 55 | // ErrBlockFull happens when trying to add a transaction to a block |
no test coverage detected