Commit Graph

1559 Commits

Author SHA1 Message Date
Ivan Socolsky 37ee40f26a add min change threshold 2016-03-23 10:58:01 -03:00
Matias Alejo Garcia d93630b5e8 Merge pull request #483 from isocolsky/ref/send-max
Improve response in send max API
2016-03-21 09:50:55 -03:00
Ivan Socolsky 6d8b4e70b6 add more info to response 2016-03-18 16:32:11 -03:00
Ivan Socolsky 6b8af51993 handle 0 input txs 2016-03-18 15:56:10 -03:00
Matias Alejo Garcia 93a8d65932 Merge pull request #470 from isocolsky/feat/send-max
Feat/send max
2016-03-18 10:47:51 -03:00
Matias Alejo Garcia 1af3d53801 Merge pull request #481 from isocolsky/ref/backoff-time
Simplify penalties and make them harder to trigger
2016-03-17 09:51:00 -03:00
Ivan Socolsky 30469f921d shuffle inputs 2016-03-16 16:46:11 -03:00
Ivan Socolsky f418009ebf add express endpoint 2016-03-16 16:42:39 -03:00
Ivan Socolsky ea94ec9963 increase BACKOFF_OFFSET from 3 to 10 + fixed BACKOFF_TIME (1 hour) 2016-03-15 17:21:22 -03:00
Ivan Socolsky 4892e23100 reduce deletion backoff time from 24h to 1h 2016-03-15 15:58:46 -03:00
Ivan Socolsky dffdebfb47 fix docs for createTx 2016-03-11 14:22:54 -03:00
Ivan Socolsky bd87a1af74 fix tests 2016-03-11 14:03:40 -03:00
Ivan Socolsky 0766499cb7 createTx dry run 2016-03-11 13:51:15 -03:00
Ivan Socolsky d23788100e allow for external use of getSendMaxInfo + refactor createTx 2016-03-11 13:51:15 -03:00
Ivan Socolsky b2fc191f54 remove generation of change address when sending max 2016-03-11 13:49:33 -03:00
Ivan Socolsky bdff2cbc35 sendMax option on createTx 2016-03-11 13:45:10 -03:00
Ivan Socolsky 755449e32d return utxo list 2016-03-11 13:42:26 -03:00
Ivan Socolsky 0aa0f345a3 add max size check 2016-03-11 13:42:25 -03:00
Ivan Socolsky 42ae722db9 tests 2016-03-11 13:42:25 -03:00
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