(feerate, anchor_expected)
| 460 | |
| 461 | |
| 462 | def basic_fee(feerate, anchor_expected): |
| 463 | if anchor_expected: |
| 464 | # option_anchor_outputs |
| 465 | weight = 1124 |
| 466 | else: |
| 467 | weight = 724 |
| 468 | return (weight * feerate) // 1000 |
| 469 | |
| 470 | |
| 471 | def closing_fee(feerate, num_outputs): |
no outgoing calls