|
|
@@ -123,10 +123,6 @@ pub struct BlockchainNetwork {
|
|
|
/// Optional sync checkpoint hash
|
|
|
checkpoint: Option<String>,
|
|
|
|
|
|
- #[structopt(long)]
|
|
|
- /// Optional bootstrap timestamp
|
|
|
- bootstrap: Option<u64>,
|
|
|
-
|
|
|
#[structopt(long)]
|
|
|
/// Garbage collection task transactions batch size
|
|
|
txs_batch_size: Option<usize>,
|
|
|
@@ -169,12 +165,6 @@ async fn realmain(args: Args, ex: Arc<smol::Executor<'static>>) -> Result<()> {
|
|
|
let bytes = base64::decode(genesis_block.trim()).unwrap();
|
|
|
let genesis_block: BlockInfo = deserialize_async(&bytes).await?;
|
|
|
|
|
|
- // Compute the bootstrap timestamp
|
|
|
- let bootstrap = match blockchain_config.bootstrap {
|
|
|
- Some(b) => b,
|
|
|
- None => genesis_block.header.timestamp.inner(),
|
|
|
- };
|
|
|
-
|
|
|
// Initialize or open sled database
|
|
|
let db_path = expand_path(&blockchain_config.database)?;
|
|
|
let sled_db = sled_overlay::sled::open(&db_path)?;
|
|
|
@@ -249,7 +239,6 @@ async fn realmain(args: Args, ex: Arc<smol::Executor<'static>>) -> Result<()> {
|
|
|
skip_sync: blockchain_config.skip_sync,
|
|
|
checkpoint_height: blockchain_config.checkpoint_height,
|
|
|
checkpoint: blockchain_config.checkpoint,
|
|
|
- bootstrap,
|
|
|
};
|
|
|
daemon
|
|
|
.start(
|