mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 07:26:51 +00:00
noise seed
This commit is contained in:
@@ -29,6 +29,7 @@ pub struct Commit {
|
||||
pub amount: [u8; 8],
|
||||
pub executor: [u8; 32],
|
||||
pub fee: [u8; 8],
|
||||
pub seed: [u8; 32],
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
|
||||
@@ -16,11 +16,7 @@ pub struct Block {
|
||||
/// The block number.
|
||||
pub id: u64,
|
||||
|
||||
/// The minimum difficulty required for payout.
|
||||
// pub min_difficulty: u64,
|
||||
|
||||
/// The reward rate per satisfying hash.
|
||||
// pub reward_rate: u64,
|
||||
/// The reward configuration.
|
||||
pub reward: RewardConfig,
|
||||
|
||||
/// The hash of the starting slot.
|
||||
@@ -34,9 +30,6 @@ pub struct Block {
|
||||
|
||||
/// The total amount of rewards paid out to miners.
|
||||
pub total_rewards: u64,
|
||||
|
||||
/// The total number of hashes that resulted in a payout.
|
||||
pub winning_hashes: u64,
|
||||
}
|
||||
|
||||
/// Configuration specifying how rewards are paid out.
|
||||
|
||||
@@ -21,9 +21,6 @@ pub struct Miner {
|
||||
|
||||
/// The amount of ORE this miner has mined.
|
||||
pub total_rewards: u64,
|
||||
|
||||
/// The number of winning hashes this miner has submitted.
|
||||
pub winning_hashes: u64,
|
||||
}
|
||||
|
||||
impl Miner {
|
||||
|
||||
@@ -21,6 +21,9 @@ pub struct Permit {
|
||||
|
||||
/// The fee paid to the executor.
|
||||
pub fee: u64,
|
||||
|
||||
/// A user-supplied seed for random number generation.
|
||||
pub seed: [u8; 32],
|
||||
}
|
||||
|
||||
impl Permit {
|
||||
|
||||
Reference in New Issue
Block a user