Structured README.md
@@ -471,9 +471,7 @@ impl<'a> ConfigurationSchema<'a> {
/// state right after initialization (all indices contain [empty vote](struct.ZEROVOTE.html)).
///
/// If an entry with the same [hash of a configuration](../exonum/blockchain/config/struct.StoredConfiguration.html#method.hash) is present in `config_data`, as in config inside of `tx_propose`, nothing is done.
- pub fn put_propose(&self,
- tx_propose: TxConfigPropose)
- -> StorageResult<()> {
+ pub fn put_propose(&self, tx_propose: TxConfigPropose) -> StorageResult<()> {
let cfg = <StoredConfiguration as StorageValue>::deserialize(tx_propose.cfg().to_vec());
let cfg_hash = &StorageValue::hash(&cfg);
@@ -498,8 +496,9 @@ impl<'a> ConfigurationSchema<'a> {
for _ in 0..num_validators {
votes_table.append(ZEROVOTE.clone())?;
}
- let config_data =
- StorageValueConfigProposeData::new(tx_propose, &votes_table.root_hash()?, num_validators as u64);
+ let config_data = StorageValueConfigProposeData::new(tx_propose,
+ &votes_table.root_hash()?,
+ num_validators as u64);
let config_data_table = self.config_data();
debug_assert!(config_data_table.get(cfg_hash).unwrap().is_none());
config_data_table.put(cfg_hash, config_data)
