X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FScoringParameters.ts;h=18e17f3c8952a07696d4d187098f983ec147ccd5;hb=1854b5cebef22ace9e9e4dd191f609818df9ce08;hp=edbe4bcc41da50d4f1830fc07958006d7ed5faad;hpb=5fd405f7a48aaeca779c45c88ec6b3d3d3dbf0e4;p=ldk-java diff --git a/ts/structs/ScoringParameters.ts b/ts/structs/ScoringParameters.ts index edbe4bcc..18e17f3c 100644 --- a/ts/structs/ScoringParameters.ts +++ b/ts/structs/ScoringParameters.ts @@ -36,6 +36,24 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.ScoringParameters_set_failure_penalty_msat(this.ptr, val); } + public number get_overuse_penalty_start_1024th() { + number ret = bindings.ScoringParameters_get_overuse_penalty_start_1024th(this.ptr); + return ret; + } + + public void set_overuse_penalty_start_1024th(number val) { + bindings.ScoringParameters_set_overuse_penalty_start_1024th(this.ptr, val); + } + + public number get_overuse_penalty_msat_per_1024th() { + number ret = bindings.ScoringParameters_get_overuse_penalty_msat_per_1024th(this.ptr); + return ret; + } + + public void set_overuse_penalty_msat_per_1024th(number val) { + bindings.ScoringParameters_set_overuse_penalty_msat_per_1024th(this.ptr, val); + } + public number get_failure_penalty_half_life() { number ret = bindings.ScoringParameters_get_failure_penalty_half_life(this.ptr); return ret; @@ -45,8 +63,8 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.ScoringParameters_set_failure_penalty_half_life(this.ptr, val); } - public static ScoringParameters constructor_new(number base_penalty_msat_arg, number failure_penalty_msat_arg, number failure_penalty_half_life_arg) { - number ret = bindings.ScoringParameters_new(base_penalty_msat_arg, failure_penalty_msat_arg, failure_penalty_half_life_arg); + public static ScoringParameters constructor_new(number base_penalty_msat_arg, number failure_penalty_msat_arg, number overuse_penalty_start_1024th_arg, number overuse_penalty_msat_per_1024th_arg, number failure_penalty_half_life_arg) { + number ret = bindings.ScoringParameters_new(base_penalty_msat_arg, failure_penalty_msat_arg, overuse_penalty_start_1024th_arg, overuse_penalty_msat_per_1024th_arg, failure_penalty_half_life_arg); const ret_hu_conv: ScoringParameters = new ScoringParameters(null, ret); ret_hu_conv.ptrs_to.add(ret_hu_conv); return ret_hu_conv;