Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
policy: add a function to get the virtual transaction size
It's very useful to Bitcoin applications, and especially "L2" ones, to effectively compute feerates. Currently (and this is very unlikely to change) bitcoind nodes compute the virtual size as a rounded-up division of the size in witness units by 4, with a penalty for transactions that are essentially >5% full of sigops. Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
- Loading branch information