dedup the
This commit is contained in:
@ -830,7 +830,7 @@ impl Bank {
|
|||||||
|
|
||||||
// 2) Transfer tokens to the bootstrap leader. The first two
|
// 2) Transfer tokens to the bootstrap leader. The first two
|
||||||
// account keys will both be the mint (because the mint is the source
|
// account keys will both be the mint (because the mint is the source
|
||||||
// for this transaction and the first move instruction is to the the
|
// for this transaction and the first move instruction is to the
|
||||||
// mint itself), so we look at the third account key to find the first
|
// mint itself), so we look at the third account key to find the first
|
||||||
// leader id.
|
// leader id.
|
||||||
let bootstrap_leader_id = tx.account_keys[2];
|
let bootstrap_leader_id = tx.account_keys[2];
|
||||||
|
@ -622,7 +622,7 @@ mod tests {
|
|||||||
//
|
//
|
||||||
// TODO: this magic number and the mix of transaction types
|
// TODO: this magic number and the mix of transaction types
|
||||||
// is designed to fill up a Blob more or less exactly,
|
// is designed to fill up a Blob more or less exactly,
|
||||||
// to get near enough the the threshold that
|
// to get near enough the threshold that
|
||||||
// deserialization falls over if it uses the wrong size()
|
// deserialization falls over if it uses the wrong size()
|
||||||
// parameter to index into blob.data()
|
// parameter to index into blob.data()
|
||||||
//
|
//
|
||||||
|
@ -102,7 +102,7 @@ impl Replicator {
|
|||||||
/// Returns a Result that contains a replicator on success
|
/// Returns a Result that contains a replicator on success
|
||||||
///
|
///
|
||||||
/// # Arguments
|
/// # Arguments
|
||||||
/// * `ledger_path` - (Not actually optional) path to where the the ledger will be stored.
|
/// * `ledger_path` - (Not actually optional) path to where the ledger will be stored.
|
||||||
/// Causes panic if none
|
/// Causes panic if none
|
||||||
/// * `node` - The replicator node
|
/// * `node` - The replicator node
|
||||||
/// * `leader_info` - NodeInfo representing the leader
|
/// * `leader_info` - NodeInfo representing the leader
|
||||||
|
Reference in New Issue
Block a user