validator: changing tendermint start to run()
This commit is contained in:
@@ -22,6 +22,10 @@ impl Abci {
|
||||
pub fn new() -> Abci {
|
||||
Abci { count: 0 }
|
||||
}
|
||||
|
||||
pub async fn run(self) {
|
||||
abci::run_local(self);
|
||||
}
|
||||
}
|
||||
|
||||
impl abci::Application for Abci {
|
||||
@@ -63,6 +67,3 @@ impl abci::Application for Abci {
|
||||
resp
|
||||
}
|
||||
}
|
||||
pub async fn start(app: Abci) {
|
||||
abci::run_local(app);
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ impl Validator<DummyMixIdentityKeyPair, DummyMixIdentityPrivateKey, DummyMixIden
|
||||
info!("Setting up Tokio runtime");
|
||||
let mut rt = Runtime::new().unwrap();
|
||||
|
||||
let abci_future = tendermint::start(self.tendermint_abci);
|
||||
let abci_future = self.tendermint_abci.start();
|
||||
let health_check_future = self.health_check.run();
|
||||
|
||||
rt.block_on(abci_future);
|
||||
|
||||
Reference in New Issue
Block a user