from rlp.sedes import (
    CountableList,
)
from eth.rlp.headers import (
    BlockHeader,
)
from eth.vm.forks.byzantium.blocks import (
    ByzantiumBlock,
)

from .transactions import (
    PetersburgTransaction,
)


class PetersburgBlock(ByzantiumBlock):
    transaction_builder = PetersburgTransaction
    fields = [
        ('header', BlockHeader),
        ('transactions', CountableList(transaction_builder)),
        ('uncles', CountableList(BlockHeader))
    ]

[((380, 414), 'rlp.sedes.CountableList', 'CountableList', (['transaction_builder'], {}), '(transaction_builder)\n', (393, 414), False, 'from rlp.sedes import CountableList\n'), ((436, 462), 'rlp.sedes.CountableList', 'CountableList', (['BlockHeader'], {}), '(BlockHeader)\n', (449, 462), False, 'from rlp.sedes import CountableList\n')]