fn insert_block_proposal(
        &self,
        txn: &Transaction,
        validator_pubkey: &PublicKeyBytes,
        slot: Slot,
        signing_root: SigningRoot,
    ) -> Result<(), NotSafe> {
        let validator_id = self.get_validator_id_in_txn(txn, validator_pubkey)?;

        txn.execute(
            "INSERT INTO signed_blocks (validator_id, slot, signing_root)
             VALUES (?1, ?2, ?3)",
            params![validator_id, slot, signing_root.to_hash256().as_bytes()],
        )?;
        Ok(())
    }
/// Insert a block proposal into the slashing database.
///
/// This should *only* be called in the same (exclusive) transaction as `check_block_proposal`
/// so that the check isn't invalidated by a concurrent mutation.
Insert a block proposal into the slashing database.
This should *only* be called in the same (exclusive) transaction as `check_block_proposal`
so that the check isn't invalidated by a concurrent mutation.
Insert a block proposal into the slashing database . This should * only * be called in the same ( exclusive ) transaction as ` check_block_proposal ` so that the check isn ' t invalidated by a concurrent mutation .
fn insert_block_proposal(
        &self,
        txn: &Transaction,
        validator_pubkey: &PublicKeyBytes,
        slot: Slot,
        signing_root: SigningRoot,
    ) -> Result<(), NotSafe> {
        let validator_id = self.get_validator_id_in_txn(txn, validator_pubkey)?;
        txn.execute(
            "INSERT INTO signed_blocks (validator_id, slot, signing_root)
             VALUES (?1, ?2, ?3)",
            params![validator_id, slot, signing_root.to_hash256().as_bytes()],
        )?;
        Ok(())
    }
fn insert_block_proposal ( & self , txn : & Transaction , validator_pubkey : & PublicKeyBytes , slot : Slot , signing_root : SigningRoot , ) -> Result < ( ) , NotSafe > { let validator_id = self . get_validator_id_in_txn ( txn , validator_pubkey ) ? ; txn . execute ( " " , params ! [ validator_id slot signing_root to_hash256 ( ) as_bytes ( ) ] , ) ? ; Ok ( ( ) ) }
Insert a block proposal into the slashing database.
Insert a block proposal into the slashing database .
&self
txn
&Transaction
validator_pubkey
&PublicKeyBytes
slot
Slot
signing_root
SigningRoot