Skip to content

Commit

Permalink
Improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
polespinasa committed May 2, 2024
1 parent aa91637 commit 29e86dc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions server/grouphug-server/src/utils/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,11 @@ pub fn validate_tx_query_one_to_one_single_anyone_can_pay(tx_hex: &str ) -> (boo
// Validate that a given transaction (in hex) is valid according to the rules.
// Returns true if the tx is valid. String with the error message if any and a f32 with the fee_rate of the transaction
// Rules:
// - Should only be 1 input.
// - Should only be 1 output.
// - Must have same number of inputs and outputs.
// - The input cannot be spent before must be and UTXO.
// - Signature must be SIGHASH_SINGLE | ANYONECANPAY.
// - Should have absolute locktime to 0.
// - Fee rate should be bigger than 1.01sat/vb
// - Must have absolute locktime to 0.
// - Fee rate must be bigger than 1.01sat/vb


let mut real_fee_rate: f32 = 0.0;
Expand Down

0 comments on commit 29e86dc

Please sign in to comment.