This commit is contained in:
Logan Collins 2018-10-21 15:48:01 -05:00
parent fabd725851
commit e65a470720
2 changed files with 10 additions and 0 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@ src/proto/message.rs
**/*.rs.bk
Cargo.lock
net-trace_*.txt
TODOs
.gitignore

View File

@ -225,6 +225,14 @@ where
self.process_subset(cs_step)
}
pub fn propose_plain(&mut self, proposal: Vec<u8>) -> Result<Step<C, N>> {
let our_id = self.netinfo.our_id().clone();
self.decryption.insert(our_id, DecryptionState::Complete(proposal));
Ok(Step::default()) // TODO: this is obviously wrong, I need to send the proposal still.
// let cs_step = self.subset.handle_input(proposal)?;
// self.process_subset(cs_step)
}
/// Returns the number of contributions that we have already received or, after completion, how
/// many have been accepted.
pub fn received_proposals(&self) -> usize {