-
Notifications
You must be signed in to change notification settings - Fork 878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WARNING !!!!! if you send bitcoin amount much less than you have, all the rest goes SILENTLY for fee !!!!!! You must warn everyone NOT to do test sending of very small amount !!!! #154
Comments
P.S. if I have e.g. 1 BTC, how do I send small fraction of it without giving ALL THE REST for fee, i.e. how do I limit a fee to be as small as I desire ? |
@cledaso you did that on the testnet or the mainnet? i'm very sorry but thats the way bitcoin works, not just this lib. Keep in mind that the function mksend includes a "change_addr" to send you back the "change" of the transaction. @vbuterin i guess you can close this issue |
hi, guys, thanks for your response ! I Suggest you ADD a warning BEFORE you really send a transaction that "you send 0.000001" and the fee for this will be "0.05" because you missed change_addr, and then make a sys.sleep(5) in ordder a new user can KILL this if he is making a first try of this python tool without full experience in how it is implemented. This is danger for NEW USERS in your IMPLEMENTATION, not just the theory of Bitcoin transaction, to say, you miss an important precaution for people like me and make people suffer real losses ! |
I propose to add PRECAUTION in your example on the main page: Example usage (best way to learn :) ):
|
print 'WARNING: you are sending ' + str(AMOUNT) + ' and paying this FEEE for it: ' + str(FEE) |
this is the WARNING which you should have, like the Bitcoin Wiki does here: https://bitcoin.org/en/developer-examples#simple-raw-transaction Warning icon Warning: createrawtransaction does not automatically create change outputs, so you can easily accidentally pay a large transaction fee. In this example, our input had 50.0000 bitcoins and our output ($NEW_ADDRESS) is being paid 49.9999 bitcoins, so the transaction will include a fee of 0.0001 bitcoins. If we had paid $NEW_ADDRESS only 10 bitcoins with no other changes to this transaction, the transaction fee would be a whopping 40 bitcoins. See the Complex Raw Transaction subsection below for how to create a transaction with multiple outputs so you can send the change back to yourself. The fact that you did not warn users caused losses, at least to me, but maybe to other users too. |
@cledaso Check out https://github.com/ofek/bit |
@reiven seriously? Not even a warning or a --yes-send-all-my-money-in-fees switch? |
This must be fixed |
@cledaso you could submit a PR to update the README. @vbuterin I think updating the README would be a good faith effort to help inform newcomers to lower level methods. Even something as simple as "please use the testnet first, inexperienced users are likely to lose BTC to fees when using these examples". |
Yes, this is risk for REAL money, so I strongly believe any warning on potential money loss must be a part of any software like this. At least in README, but better interactively before you confirm any TX to submit, possible with "mute" option for experienced users. Formally I do not remember that I was offered with a T&C text warning me on potential money loss into transactions fee and that I explicitly accepted such type of risk. So formally we may speak about financial damage caused by this SW tool to beginners in the crypto-programming like me, who followed STRICTLY to the README and example, and lost money by it. In particular I have lost 0.05 btc on this and with the current rates (16 K usd per btc ) I would be very much interested in having my losses be paid back ;) |
what is PR and how could I submit it ? |
@cledaso vitalik has shut down this library as of 9 hours ago, so I guess that solves the problem of risk exposure. There are many similar tools out there to use, I would still highly recommend learning how to submit pull requests so you can get involved in your favorite open source projects 😄 |
how to use pybitcointools with public testnet ?? |
I just tried to make test transaction of very small fraction of what I had on my BTC address, and FUCKKKKKKKKKK, 99% of my money went SILENTLY to fee !!!!!!!!! Bullshit !!!! I lost money because you programmed it in so dangerous and un-documented way !!!!!!!!!!!!!
The text was updated successfully, but these errors were encountered: