Move message0 response handler out of NB

This commit is contained in:
rishflab 2020-12-14 18:25:46 +11:00 committed by Franck Royer
parent 4143394767
commit 143d8bc07d
No known key found for this signature in database
GPG key ID: A82ED75A8DFC50A4
11 changed files with 108 additions and 151 deletions

View file

@ -123,12 +123,9 @@ pub async fn init_alice_eventloop(
redeem_address,
punish_address,
);
let start_state = AliceState::Started {
amounts,
state0: state0.clone(),
};
let start_state = AliceState::Started { amounts, state0 };
let alice_behaviour = alice::Behaviour::new(state0);
let alice_behaviour = alice::Behaviour::default();
let alice_transport = build(alice_behaviour.identity()).unwrap();
let (swarm_driver, handle) =