Ivan Socolsky
06b63e0311
all methods working with coin
7 years ago
Gabe Gattis
6649c35678
rename 'models' directory in tests to be 'model', which matches lib
9 years ago
Ivan Socolsky
8ce304fd4e
reduce safety margin to 2%
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
eb006c3db3
remove bitcore-wallet-utils dependency
9 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
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
0285d4924c
reorganize model tests
10 years ago
Ivan Socolsky
619db55e6c
refactor actions as array
10 years ago
Ivan Socolsky
8dd523fec8
various fixes
10 years ago
Matias Alejo Garcia
5953dc8f1d
fix getRawTx
10 years ago
Matias Alejo Garcia
a04cded8b9
refactor _checkSignatures
10 years ago
Ivan Socolsky
cde30c6b9d
add proposalSignature to txp
10 years ago
Ivan Socolsky
674e3a5b77
fix required rejections
10 years ago
Matias Alejo Garcia
4bf541c7b1
transaction signing
10 years ago