Commit Graph

46 Commits

Author SHA1 Message Date
Ivan Vershigora
35f803875f
fix: decimal fee
Some checks failed
Run Tests / unit (14) (push) Has been cancelled
Run Tests / unit (lts/*) (push) Has been cancelled
Run Tests / coverage (14) (push) Has been cancelled
Run Tests / coverage (lts/*) (push) Has been cancelled
Run Tests / lint (14) (push) Has been cancelled
Run Tests / lint (lts/*) (push) Has been cancelled
2025-04-05 14:55:45 +01:00
Ivan Vershigora
50aa452cc5
feat: decimal fee rate 2025-03-30 11:49:27 +01:00
kevin
2a853e3979
fix: treat zero value outputs as pre-defined (#71) 2022-06-14 09:05:35 +09:00
Karel Bilek
afff8f9fce Fix tests for the different default input size 2017-08-10 23:40:09 +02:00
Daniel Cousens
9ff2adc854 utils: support value > 2^32 2017-06-27 22:38:41 +10:00
Daniel Cousens
58beeb3001 tests: add failing value>2^32 fixture 2017-06-27 22:38:41 +10:00
Daniel Cousens
b0fb09d54f accum/index/split: add feedback check to ensure results are backwards consistent 2016-12-21 17:02:34 +11:00
Daniel Cousens
4b10be724c tests: add failing test for accumulative fee on detrimental input 2016-11-30 22:29:30 +11:00
Daniel Cousens
c881e10246 tests: add more tests for detrimental inputs on default 2016-11-07 14:47:47 +11:00
Daniel Cousens
e8877e40e0 add accumulative tests w/ bad fee skipping 2016-11-07 14:41:03 +11:00
Daniel Cousens
b94c9a5748 order utxos taking into account fees 2016-11-05 17:42:52 +11:00
Daniel Cousens
2d8f691303 split: fix missing attribute copy-over, simplify tests 2016-10-27 16:47:31 +11:00
Daniel Cousens
fa870a5e01 break: add fixture with address retainership 2016-10-27 16:39:51 +11:00
Daniel Cousens
1b10d877db break: fix NaN inAccum leading to infinite loop 2016-10-27 11:46:16 +11:00
Daniel Cousens
a36e2da1ef tests: add utils tests 2016-10-27 11:17:33 +11:00
Daniel Cousens
565a9293f2 tests: add tests for floating input/outputs 2016-10-27 10:12:30 +11:00
Daniel Cousens
b28cc67296 tests: add tests for non-uint fee rate 2016-10-27 09:59:15 +11:00
Daniel Cousens
d287cf253e *: deal with NaN consistently, should always just fail, not throw 2016-10-26 15:57:32 +11:00
Daniel Cousens
9022886678 s/broken/break 2016-10-13 16:30:30 +11:00
Daniel Cousens
4b758d078b *: remove use of const, ES5ify 2016-10-13 14:55:26 +11:00
Daniel Cousens
a8d585c6d0 _utils: remove use of Object.assign for ES5 2016-10-13 13:30:33 +11:00
Daniel Cousens
20961c7ab3 more ES5 boooo 2016-10-13 13:09:47 +11:00
Daniel Cousens
6d0ea2568f unify testing convenience functions 2016-10-13 13:07:59 +11:00
Daniel Cousens
fde5883b29 broken: add tests for non finite values 2016-10-13 12:16:23 +11:00
Daniel Cousens
2f82d1fd05 broken/tests: fix output scripts being lost 2016-10-13 12:06:53 +11:00
Daniel Cousens
049bb1a837 broken: add missing value to outAccum 2016-10-13 01:22:43 +11:00
Daniel Cousens
64431cbd64 split: add further tests for pre-defined outputs 2016-10-12 19:43:06 +11:00
Daniel Cousens
5618e60d86 add broken/split, change dust threshold calculation 2016-10-12 19:21:19 +11:00
Daniel Cousens
3d6ace1ffc tests: add fixture for re-ordered no direct w/ change 2016-10-12 15:06:46 +11:00
Daniel Cousens
e5bbbe4da9 accum: fix modification of input arguments 2016-09-28 18:56:11 +10:00
Daniel Cousens
689ac12722 tests: adhere to updated constants 2016-09-03 16:37:06 +10:00
Daniel Cousens
2b2e0c71ee tests: fix standard is undefined 2016-09-03 16:13:22 +10:00
Daniel Cousens
1868cfe99b add multiple strategies 2016-09-03 16:11:03 +10:00
Daniel Cousens
79d086e448 tests: add sub-optimal input ordering examples 2016-09-02 18:25:18 +10:00
Daniel Cousens
3069d34899 README/tests: fix import structure 2016-09-02 18:19:42 +10:00
Daniel Cousens
c1e95b878d rework for multiple algorithms 2016-09-02 18:00:51 +10:00
Daniel Cousens
e585d08dbc tests: add coverage for .script(s) 2016-08-31 19:26:26 +10:00
Daniel Cousens
1f90cf175b use ES5 for tests too 2016-08-31 17:25:53 +10:00
Daniel Cousens
469615e517 switch to satoshi fee rate, avoid all rounding 2016-08-31 16:49:39 +10:00
Daniel Cousens
6c7df946bc fixtures: add non integer feePerKb example 2016-02-03 16:45:07 +11:00
Daniel Cousens
b61d5cccea rm Math.ceil rounding of fee, adopt test fixtures suitably 2015-12-22 12:31:23 +11:00
Daniel Cousens
127f2881c3 add failing test for not enough funds 2015-09-27 17:48:50 +10:00
Daniel Cousens
3009e25d58 README: add examples, specify inputs as null 2015-09-22 23:48:01 +10:00
Daniel Cousens
80ed9a0e98 always return .fee, .inputs will indicate solution 2015-09-22 23:19:12 +10:00
Daniel Cousens
0ad6a5b8d8 remove throwing behaviour, return falsey if no solution exists 2015-09-22 16:53:42 +10:00
Daniel Cousens
8834e205d6 Initial commit 2015-09-21 13:36:33 +10:00