Update C/C++ demo to LDK 0.0.118 API
[ldk-c-bindings] / lightning-c-bindings / demo.c
index ed4e1afbd0b6ef3ee1ae79f2f464f441a2209c6f..c42f6cd589cb04d75a6da6ad5af50010e9edb8f1 100644 (file)
@@ -13,7 +13,7 @@ void print_log(const void *this_arg, const LDKRecord *record) {
 }
 
 uint32_t get_fee(const void *this_arg, LDKConfirmationTarget target) {
-       if (target == LDKConfirmationTarget_Background) {
+       if (target == LDKConfirmationTarget_AnchorChannelFee || target == LDKConfirmationTarget_MinAllowedAnchorChannelRemoteFee) {
                return 253;
        } else {
                return 507;