Skip to main content

produce

Function produce 

Source
pub fn produce(
    executor: &mut Executor,
    parameters: &NetworkParameters,
    parent: &Parent<'_>,
    signing: &PrivateKey,
    vrf_key: &PrivateKey,
    decisions: &Decisions,
) -> Result<Block, ProduceError>
Expand description

parent のあとのブロックを、signing(リモートならリモートの鍵)と vrf の鍵で作る。 executor は親のあとの状態で、返したときは作ったブロックを実行したあとの状態になっている。 通らなければ途中の状態なので、捨てて戻し直すこと