pub fn add_hash_entry(&self, eth_op_id: i64, hash: &H256) -> QueryResult<()> {
        self.0.conn().transaction(|| {
            // Insert the new hash entry.
            let hash_entry = NewETHTxHash {
                eth_op_id,
                tx_hash: hash.as_bytes().to_vec(),
            };
            let inserted_hashes_rows = insert_into(eth_tx_hashes::table)
                .values(&hash_entry)
                .execute(self.0.conn())?;
            assert_eq!(
                inserted_hashes_rows, 1,
                "Wrong amount of updated rows (eth_tx_hashes)"
            );
            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 .
pub fn add_hash_entry(&self, eth_op_id: i64, hash: &H256) -> QueryResult<()> {
        self.0.conn().transaction(|| {
            // Insert the new hash entry.
            let hash_entry = NewETHTxHash {
                eth_op_id,
                tx_hash: hash.as_bytes().to_vec(),
            };
            let inserted_hashes_rows = insert_into(eth_tx_hashes::table)
                .values(&hash_entry)
                .execute(self.0.conn())?;
            assert_eq!(
                inserted_hashes_rows, 1,
                "Wrong amount of updated rows (eth_tx_hashes)"
            );
            Ok(())
        })
    }
pub fn add_hash_entry ( & self , eth_op_id : i64 , hash : & H256 ) -> QueryResult < ( ) > { self . 0 . conn ( ) . transaction ( | | { // Insert the new hash entry. let hash_entry = NewETHTxHash { eth_op_id , tx_hash : hash . as_bytes ( ) . to_vec ( ) , } ; let inserted_hashes_rows = insert_into ( eth_tx_hashes :: table ) . values ( & hash_entry ) . execute ( self . 0 . conn ( ) ) ? ; assert_eq ! ( inserted_hashes_rows 1 " " ) ; 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