Ivan Socolsky
8ce304fd4e
reduce safety margin to 2%
9 years ago
Braydon Fuller
7530ee9d0e
Wallet Model: Check that "m" and "n" arguments are numbers
9 years ago
Ivan Socolsky
2211847d0c
remove type from txproposal model
9 years ago
Ivan Socolsky
6deb9e77f6
txproposalv3 -> txproposal
9 years ago
Ivan Socolsky
563ee14dc1
txproposal.js -> txproposal_legacy.js
9 years ago
Ivan Socolsky
ebce4629ff
test getEstimatedSize()
9 years ago
Ivan Socolsky
63eca6b529
txProposal v3
9 years ago
Kosta Korenkov
2bdc6cf19d
Make API.createTx accept preselected inputs
Add EXTERNAL tx type
It will allow clients to specify inputs and outputs when creating proposals
Extract _validateOutputs method
Use for-loop to simplify and make it fail-fast.
Do not validate outputs for EXTERNAL tx type
Outputs may be of any kind (e.g. OP_RETURN). It is assumed that outputs are validated by caller.
Move output validation to a single place
Check tx and estimate fees for EXTERNAL proposal
Set amount for external proposals
Use changeAddress to determine network
Do not shuffle outputs for EXTERNAL txp
Fix input selection to respect fees
Add more inputs, if we selected exactly the amount to spend, so we avoid 'Insufficient funds for a fee' error
Properly handle UTXO with 0 satoshis
Minor fixes
ignore invalid utxos
10 years ago
Ivan Socolsky
c629b02419
test address derivation from PKR
9 years ago
Ivan Socolsky
eb006c3db3
remove bitcore-wallet-utils dependency
9 years ago
Ivan Socolsky
c974cf791a
default address manager to BIP45
9 years ago
Ivan Socolsky
e11da7cec5
remove AddressManager from copayers on BIP44
9 years ago
Ivan Socolsky
a4f1169aa9
allow addressManager to handle BIP44 derivations
10 years ago
Ivan Socolsky
7d9e43fccc
initialize version field from #create method
10 years ago
Ivan Socolsky
2558dcbbbd
support legacy clients + tests
10 years ago
Ivan Socolsky
5b3671b079
fix tests
10 years ago
Ivan Socolsky
7139847709
remove TxProposal#getHeader
10 years ago
Ivan Socolsky
48e0709607
simplify validations on createTx
10 years ago
Ivan Socolsky
dee4a83ded
refactor proposal hash
10 years ago
Gregg Zigler
c1558bb1b0
change xit back to it in tests, but add skip to backoff-tiime suite
10 years ago
Gregg Zigler
3a9fce12bf
debug travis issue
10 years ago
Gregg Zigler
0a4bf8f77f
proposal header hash and proposal amount should work with multi-output
10 years ago
Gregg Zigler
ab33debdd1
move types to single object, remove default type assignment from proposal
10 years ago
Gregg Zigler
10644f7edc
handle unknown proposal types
10 years ago
Gregg Zigler
453a7187b5
separate common properties from those that vary by proposal type
10 years ago
Gregg Zigler
6f43888176
txproposal with type=multiple-outputs needs an array of outputs
10 years ago
Ivan Socolsky
4b53947ae6
add network to txproposal model
10 years ago
Ivan Socolsky
d8524fed2a
add network to address model
10 years ago
Ivan Socolsky
be0565fca0
test rewind
10 years ago
Ivan Socolsky
5349529444
add address derivation to copayer model
10 years ago
Ivan Socolsky
4e840328bd
add walletId to txProposal model
10 years ago
Ivan Socolsky
de21e086a9
rebase
10 years ago
Ivan Socolsky
4a53da8690
shuffle outputs
10 years ago
Ivan Socolsky
97d4809f68
use Bitcore instance from BWU
10 years ago
Ivan Socolsky
5d537afc60
improve error detection when building tx
10 years ago
Ivan Socolsky
7e43e70e6c
refactor PKR to hold other pub keys
10 years ago
Ivan Socolsky
0285d4924c
reorganize model tests
10 years ago