fn add_hash_entry(&self, eth_op_id: i64, hash: &H256) -> Result<(), failure::Error> {
        assert!(
            self.unconfirmed_operations
                .borrow()
                .contains_key(&eth_op_id),
            "Attempt to update tx that is not unconfirmed"
        );

        let mut ops = self.unconfirmed_operations.borrow_mut();
        let mut op = ops[&eth_op_id].clone();
        op.used_tx_hashes.push(*hash);
        ops.insert(eth_op_id, op);

        Ok(())
    }
/// Adds a tx hash entry associated with some Ethereum operation to the database.
Adds a tx hash entry associated with some Ethereum operation to the database.
Adds a tx hash entry associated with some Ethereum operation to the database .
fn add_hash_entry(&self, eth_op_id: i64, hash: &H256) -> Result<(), failure::Error> {
        assert!(
            self.unconfirmed_operations
                .borrow()
                .contains_key(&eth_op_id),
            "Attempt to update tx that is not unconfirmed"
        );
        let mut ops = self.unconfirmed_operations.borrow_mut();
        let mut op = ops[&eth_op_id].clone();
        op.used_tx_hashes.push(*hash);
        ops.insert(eth_op_id, op);
        Ok(())
    }
fn add_hash_entry ( & self , eth_op_id : i64 , hash : & H256 ) -> Result < ( ) , failure :: Error > { assert ! ( self unconfirmed_operations borrow ( ) contains_key ( eth_op_id ) " " ) ; let mut ops = self . unconfirmed_operations . borrow_mut ( ) ; let mut op = ops [ & eth_op_id ] . clone ( ) ; op . used_tx_hashes . push ( * hash ) ; ops . insert ( eth_op_id , op ) ; Ok ( ( ) ) }
Adds a tx hash entry associated with some Ethereum operation to the database.
Adds a tx hash entry associated with some Ethereum operation to the database .
&self
eth_op_id
i64
hash
&H256