-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document & bolster calculate_fees #14
Comments
|
This |
The public key hash in P2WPKH is 20 bytes; The script hash in P2WSH is 32 bytes. 32-20 is 12 when the static reserve output is substituted with a channel funding tx |
|
Could |
Oh, yeah, it seems to be wrong. 8 is for amount, 1 should be for the length of the script (compact size), 1 for But this still assumes there are less than 253 channels which is fine for now but this needs to be implemented correctly long term. It should go to payjoin crate anyway. |
calculate fees seems to work for a subset of possible transaction creations. What do the magic numbers mean? I'd like to add the ability to batch another arbitrary output. Nolooking also failed to meet min relayfee in an off by one error when sending from sparrow (payjoin/nolooking#34)
loptos/src/main.rs
Lines 187 to 195 in 4390bb0
The text was updated successfully, but these errors were encountered: