unwriter / datacash

The simplest way to write data to Bitcoin Cash blockchain
58 stars 17 forks source link

Use all utxos as input and fee based on size #6

Closed FreeTrade closed 6 years ago

FreeTrade commented 6 years ago

If the first utxo isn't large enough, the trx will fail, so this uses all the utxos as input. Also tries to get just over 1sat /byte, although the size estimation seems funky, so this can be a bit off. Better to err on the side of too large fees. These are a bit hacky, but better than what's there atm.

unwriter commented 6 years ago

Thanks for the PR and sorry for the late response. This feature was really needed.

I actually just came back to create an issue about this myself and just found this PR, Github is not sending me any notifications when there are pull requests so I had no idea there was a PR. Need to find a way to get all the updates.