File tree Expand file tree Collapse file tree
crates/amaru/src/bin/amaru Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ LEDGER_DIR ?= ./ledger.$(NETWORK).db
1515CHAIN_DIR ?= ./chain.$(NETWORK ) .db
1616BUILD_PROFILE ?= release
1717
18- .PHONY : help bootstrap start import-ledger-state import-headers import- nonces download-haskell-config coverage-html coverage-lconv check-llvm-cov fetch-chain-headers
18+ .PHONY : help bootstrap start import-ledger-state import-nonces download-haskell-config coverage-html coverage-lconv check-llvm-cov fetch-chain-headers
1919
2020help :
2121 @echo " \033[1;4mTargets:\033[00m"
@@ -47,18 +47,6 @@ import-ledger-state: snapshots/$(NETWORK) ## Import snapshots for demo
4747 --ledger-dir " $( LEDGER_DIR) " \
4848 $$ SNAPSHOT_ARGS
4949
50- import-headers : # # Import headers from $PEER_ADDRESS for demo
51- @if [ ! -f " $( HEADERS_FILE) " ]; then echo " HEADERS_FILE not found: $( HEADERS_FILE) " ; exit 1; fi ; \
52- HEADERS=$$(jq -r '.[]' $(HEADERS_FILE ) ) ; \
53- for HEADER in $$ HEADERS; do \
54- cargo run --profile $(BUILD_PROFILE ) -- import-headers \
55- --network $(NETWORK ) \
56- --chain-dir $(CHAIN_DIR ) \
57- --peer-address $(PEER_ADDRESS ) \
58- --starting-point $$ HEADER \
59- --count 2; \
60- done
61-
6250import-nonces : # # Import nonces for demo
6351 @if [ ! -f " $( NONCES_FILE) " ]; then echo " NONCES_FILE not found: $( NONCES_FILE) " ; exit 1; fi ; \
6452 cargo run --profile $(BUILD_PROFILE ) -- import-nonces \
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ use pallas_network::facades::PeerClient;
1818pub ( crate ) mod bootstrap;
1919pub ( crate ) mod daemon;
2020pub ( crate ) mod fetch_chain_headers;
21- pub ( crate ) mod import_headers;
2221pub ( crate ) mod import_ledger_state;
2322pub ( crate ) mod import_nonces;
2423
Original file line number Diff line number Diff line change @@ -46,10 +46,6 @@ enum Command {
4646 #[ clap( alias = "import" ) ]
4747 ImportLedgerState ( cmd:: import_ledger_state:: Args ) ,
4848
49- /// Import block headers from another (live) node.
50- #[ clap( alias = "import-chain-db" ) ]
51- ImportHeaders ( cmd:: import_headers:: Args ) ,
52-
5349 /// Import VRF nonces intermediate states
5450 ImportNonces ( cmd:: import_nonces:: Args ) ,
5551}
@@ -113,7 +109,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
113109 let result = match args. command {
114110 Command :: Daemon ( args) => cmd:: daemon:: run ( args, metrics) . await ,
115111 Command :: ImportLedgerState ( args) => cmd:: import_ledger_state:: run ( args) . await ,
116- Command :: ImportHeaders ( args) => cmd:: import_headers:: run ( args) . await ,
117112 Command :: ImportNonces ( args) => cmd:: import_nonces:: run ( args) . await ,
118113 Command :: Bootstrap ( args) => cmd:: bootstrap:: run ( args) . await ,
119114 Command :: FetchChainHeaders ( args) => cmd:: fetch_chain_headers:: run ( args) . await ,
You can’t perform that action at this time.
0 commit comments