pub fn update_eth_tx(
        &self,
        eth_op_id: i64,
        new_deadline_block: i64,
        new_gas_value: BigUint,
    ) -> QueryResult<()> {
        self.0.conn().transaction(|| {
            // Update the stored tx.
            update(eth_operations::table.filter(eth_operations::id.eq(eth_op_id)))
                .set((
                    eth_operations::last_used_gas_price.eq(StoredBigUint(new_gas_value)),
                    eth_operations::last_deadline_block.eq(new_deadline_block),
                ))
                .execute(self.0.conn())?;

            Ok(())
        })
    }
/// Updates the Ethereum operation by adding a new tx data.
/// The new deadline block / gas value are placed instead of old values to the main entry.
Updates the Ethereum operation by adding a new tx data.
The new deadline block / gas value are placed instead of old values to the main entry.
Updates the Ethereum operation by adding a new tx data . The new deadline block / gas value are placed instead of old values to the main entry .
pub fn update_eth_tx(
        &self,
        eth_op_id: i64,
        new_deadline_block: i64,
        new_gas_value: BigUint,
    ) -> QueryResult<()> {
        self.0.conn().transaction(|| {
            // Update the stored tx.
            update(eth_operations::table.filter(eth_operations::id.eq(eth_op_id)))
                .set((
                    eth_operations::last_used_gas_price.eq(StoredBigUint(new_gas_value)),
                    eth_operations::last_deadline_block.eq(new_deadline_block),
                ))
                .execute(self.0.conn())?;
            Ok(())
        })
    }
pub fn update_eth_tx ( & self , eth_op_id : i64 , new_deadline_block : i64 , new_gas_value : BigUint , ) -> QueryResult < ( ) > { self . 0 . conn ( ) . transaction ( | | { // Update the stored tx. update ( eth_operations :: table . filter ( eth_operations :: id . eq ( eth_op_id ) ) ) . set ( ( eth_operations :: last_used_gas_price . eq ( StoredBigUint ( new_gas_value ) ) , eth_operations :: last_deadline_block . eq ( new_deadline_block ) , ) ) . execute ( self . 0 . conn ( ) ) ? ; Ok ( ( ) ) } ) }
Updates the Ethereum operation by adding a new tx data.
Updates the Ethereum operation by adding a new tx data .
&self
eth_op_id
i64
new_deadline_block
i64
new_gas_value
BigUint