Commit Graph

1590 Commits

Author SHA1 Message Date
Ivan Socolsky 8d25f23849 get send max info 2016-03-11 13:38:42 -03:00
Matias Alejo Garcia a3da2deb65 Merge pull request #477 from isocolsky/utxo-selection
Improve UTXO selection
2016-03-11 11:56:42 -03:00
Ivan Socolsky a4ced0320f refactor fee correction on change below dust 2016-03-11 11:47:57 -03:00
Ivan Socolsky 10b4ff3d15 fix netTotal bug + test 2016-03-11 11:13:29 -03:00
Ivan Socolsky 6f7488fb59 default to public insight server on testnet 2016-03-11 10:47:25 -03:00
Ivan Socolsky 8ce304fd4e reduce safety margin to 2% 2016-03-10 18:59:04 -03:00
Ivan Socolsky 8865d42ec3 improve fee computation for P2PKH wallets 2016-03-10 18:58:56 -03:00
Ivan Socolsky ee7d3bad7f allow absolute fee when specifying inputs 2016-03-10 11:47:54 -03:00
Ivan Socolsky f976637b14 improve code readability 2016-03-09 10:45:37 -03:00
Ivan Socolsky 5afc74d4f6 revert breaking conditions for small inputs to improve tracing 2016-03-09 10:18:13 -03:00
Ivan Socolsky c3ee9e9b93 shuffle inputs 2016-03-08 15:47:31 -03:00
Ivan Socolsky 49791bcfdf remove redundant check for very small utxos 2016-03-08 15:28:49 -03:00
Ivan Socolsky c01d1568bb adapt fee to avoid change below dust 2016-03-08 15:28:28 -03:00
Ivan Socolsky 9ed48f1e77 keep adding utxos to raise change above dust 2016-03-08 10:55:32 -03:00
Matias Alejo Garcia 23801ff246 Merge pull request #480 from gabrielbazan7/feat/payloadPN
refactor ios payload structure
2016-03-08 09:57:34 -03:00
Gabriel Bazán c43a11d647 refactor ios payload structure 2016-03-08 09:49:00 -03:00
Ivan Socolsky 293c15a3d3 Merge pull request #4 from matiu/utxo-tests
Utxo tests
2016-03-08 09:37:16 -03:00
Ivan Socolsky 72cf236bd6 fix variable names 2016-03-08 09:29:57 -03:00
Matias Alejo Garcia 69d099020f add tests 2016-03-08 09:28:34 -03:00
Matias Alejo Garcia 722a1d4ae7 add version check 2016-03-08 08:59:01 -03:00
Ivan Socolsky 37d27cec40 create compound index for walletId, createdOn. drop old index 2016-03-08 08:59:01 -03:00
Ivan Socolsky 08cb603a50 merge utxo exclusion into sanitize fn 2016-03-07 15:44:40 -03:00
Ivan Socolsky cbde3233df handle lots of small inputs causing the total balance after fees to decrease 2016-03-07 15:26:04 -03:00
Ivan Socolsky 680516da70 replace old utxo selection algo 2016-03-07 13:04:18 -03:00
Ivan Socolsky 504b52d695 compare both utxo selection algorithms 2016-03-07 13:00:53 -03:00
Ivan Socolsky d3faad0639 make select fn async 2016-03-07 12:30:10 -03:00
Matias Alejo Garcia a01a32b9ed Merge pull request #478 from isocolsky/fix/address-index
Fix index for address query
2016-03-07 10:08:21 -03:00
Ivan Socolsky c8d8af7d1d create compound index for walletId, createdOn. drop old index 2016-03-07 09:59:15 -03:00
Ivan Socolsky 60f6300fbc rebased 2016-03-04 17:53:16 -03:00
Ivan Socolsky 2581f488fa improve error handling 2016-03-04 17:50:23 -03:00
Ivan Socolsky 485b98de86 fix big input threshold computation 2016-03-04 17:50:23 -03:00
Ivan Socolsky c90d5bfed4 proper log messages 2016-03-04 17:50:23 -03:00
Ivan Socolsky 62c0fb06ef test utxo confirmation priority 2016-03-04 17:50:23 -03:00
Ivan Socolsky a8cd4fe2c6 improve test cases 2016-03-04 17:50:23 -03:00
Ivan Socolsky fdd5255e59 add stop conditions for small utxos 2016-03-04 17:50:23 -03:00
Ivan Socolsky cd82017845 fix tests 2016-03-04 17:50:23 -03:00
Ivan Socolsky 328f6250be improve utxo mocking 2016-03-04 17:50:23 -03:00
Ivan Socolsky dbba3acfa8 new input selection algorithm 2016-03-04 17:50:22 -03:00
Ivan Socolsky baaa6e62c7 refactor integration test code 2016-03-04 17:50:22 -03:00
Matias Alejo Garcia 040bb0004f Merge pull request #476 from isocolsky/fee-level-cache
Cache fee level
2016-03-04 17:23:04 -03:00
Ivan Socolsky 5f5aed6345 cache last fee level 2016-03-04 17:02:05 -03:00
Matias Alejo Garcia 167f70b02c Merge pull request #475 from isocolsky/ref/fee-handling
Ref/fee handling
2016-03-04 12:02:04 -03:00
Ivan Socolsky f878594d40 rm feeLevel 2016-03-04 11:07:17 -03:00
Ivan Socolsky 682bf7fdd2 make feePerKb required 2016-03-04 11:06:16 -03:00
Ivan Socolsky 446f35426f remove explicit final fee for tx creation 2016-03-04 10:30:26 -03:00
Ivan Socolsky 37f87e4793 accept feeLevel on createTx 2016-03-04 10:30:26 -03:00
Matias Alejo Garcia 443be97580 Merge pull request #474 from isocolsky/default-fee-levels
New fee level defaults
2016-03-04 10:18:50 -03:00
Ivan Socolsky 900386a78e fix test 2016-03-04 09:59:28 -03:00
Ivan Socolsky 9e0891f644 new defaults 2016-03-04 09:51:59 -03:00
Matias Alejo Garcia f1c37ee4b3 Merge pull request #472 from isocolsky/fix/scan-window
Expand address scan gap
2016-03-01 10:57:10 -03:00