Pool record (POOL)
Protocol and consensus12.4.15+

Pool record (POOL)

The payout record in the coinbase of a pool block.

A block mined by a Lotus pool node describes its payout in eMPP segments of its coinbase. Addresses and amounts are not repeated: they are the outputs of the coinbase. It is not consensus. The sections and a decoded example are in On-chain protocols for developers.

Byte layout #

POOL (50 4f 4f 4c), version 1 (one byte), the section type as a length-prefixed string, then the body. Integers are little-endian.

SectionContent
HHead: pool id, finder, the commitment of the share window, shares, weight, hashrate, payee count, fee and burn
PPayees: the first output, then the share and the hashrate of each
B, CSatoshis destroyed: work without a Lotus address, and rounding
DSatoshis destroyed for the coinbase's data bytes
SA ledger settlement (pool operators)

A reader keeps unknown sections and skips them. GET /api/v1/pool-public/record/<block hash> and decodepoolrecord decode a record.

Source files #

  • src/pool/, doc/pool-payouts.md
Source doc/protocols/pool-record.md in the lotusd repository