unwriter / datacash

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

Automatically calculate the size #1

Open cyio opened 6 years ago

cyio commented 6 years ago

https://explorer.bitcoin.com/bch/tx/6ddd801184985617b18efb9a6242574b448c2ee4ac76c5a58336ea6cebf1d3d0

This tx is 424 byte with a 217 characters message. If I set a static fee, datacash would send failed.

unwriter commented 6 years ago

Thanks for the heads up. I do want to make this work automatically by auto-calculation, but in the meantime since the demo is not working, I just raised the default fee from 300 to 400 https://github.com/unwriter/datacash/commit/006a5e8ebed1457d6d35f06faa4703358a58e6cf just so that the demo works. I've just confirmed that it's working for the demo now, but can you check that it's working?

That said, you can also manually set the fee if you think 400 is too much. https://github.com/unwriter/datacash#b-cash

I will try to figure out auto-calculation as soon as I can and update here when I do.

cyio commented 6 years ago

Yeah, I have done some txs with the playground, 300 is ok for most of them, check my profile https://memo.cash/profile/1LZsthmfhU9o1QjHVgsZEWqSrMWgnH734D

If you set at least 1sat / 1byte, the tx always broadcast success. So, the fee option should allow I set like 1, 1.2, 2, etc instead of a static fee.

Something should notice happen on memo image