Skip to content

Lighthouse


Calls


set

Inherent to set the lighthouse of a block.

Attributes

Name Type
lighthouse T::AccountId

Python

call = substrate.compose_call(
    'Lighthouse', 'set', {'lighthouse': 'AccountId'}
)

Events


BlockReward

An account rewarded for block production. [lighthouse, amount]

Attributes

Name Type Composition
None T::AccountId AccountId
None BalanceOf<T> u128

Storage functions


BlockReward

Current block lighthouse reward.

Python

result = substrate.query(
    'Lighthouse', 'BlockReward', []
)

Return value

'u128'

Lighthouse

Current block lighthouse account.

Python

result = substrate.query(
    'Lighthouse', 'Lighthouse', []
)

Return value

'AccountId'

Constants


BlockReward

Reward amount for block proposer.

Value

380520

Python

constant = substrate.get_constant('Lighthouse', 'BlockReward')

Errors


LighthouseAlreadySet

Lighthouse already set in block.