Bitcoin Forum
April 24, 2024, 12:40:39 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to use this Python program!?  (Read 303 times)
NewdayBTC (OP)
Jr. Member
*
Offline Offline

Activity: 76
Merit: 1


View Profile
August 31, 2017, 09:48:40 PM
 #1

Hello! I encountered this program and  I am wondering if anyone here can tell me how to use it correctly as I have never used python before.

The link to the code is here: https://github.com/petertodd/replace-by-fee-tools

If anyone could help, that would be great!

Thanks everyone!
1713919239
Hero Member
*
Offline Offline

Posts: 1713919239

View Profile Personal Message (Offline)

Ignore
1713919239
Reply with quote  #2

1713919239
Report to moderator
1713919239
Hero Member
*
Offline Offline

Posts: 1713919239

View Profile Personal Message (Offline)

Ignore
1713919239
Reply with quote  #2

1713919239
Report to moderator
Remember that Bitcoin is still beta software. Don't put all of your money into BTC!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713919239
Hero Member
*
Offline Offline

Posts: 1713919239

View Profile Personal Message (Offline)

Ignore
1713919239
Reply with quote  #2

1713919239
Report to moderator
1713919239
Hero Member
*
Offline Offline

Posts: 1713919239

View Profile Personal Message (Offline)

Ignore
1713919239
Reply with quote  #2

1713919239
Report to moderator
1713919239
Hero Member
*
Offline Offline

Posts: 1713919239

View Profile Personal Message (Offline)

Ignore
1713919239
Reply with quote  #2

1713919239
Report to moderator
btctousd81
Sr. Member
****
Offline Offline

Activity: 434
Merit: 270


View Profile WWW
September 01, 2017, 05:35:54 AM
 #2

i hope you have basic knowledge of linux

first install

Code:
yum install git python pip
then you do

Code:
git clone https://github.com/petertodd/replace-by-fee-tools
then

Code:
cd replace-by-fee-tools
then

Code:
./bump-fee.py <txid>

e.g.
Code:
./bump-fee.py ac72df13e91b189f43b5cbe41f3f9f342391616bca553aafe04d219a665fced3

or

Code:
python bump-fee.py ac72df13e91b189f43b5cbe41f3f9f342391616bca553aafe04d219a665fced3

NewdayBTC (OP)
Jr. Member
*
Offline Offline

Activity: 76
Merit: 1


View Profile
September 01, 2017, 06:05:38 AM
 #3

Thanks for the reply! I have done what you said and everything is working up until this point.

When i type in:
Code:
python doublespend.py

It gives me this error

Code:
Traceback (most recent call last):
  File "doublespend.py", line 10, in <module>
    import bitcoin.rpc
ImportError: No module named rpc

I have googled it and I cant find a module named bitcoin.rpc

I have already installed rpc (pip install rpc)



Any ideas?

Thanks a ton!
eternalgloom
Legendary
*
Offline Offline

Activity: 1792
Merit: 1283



View Profile WWW
September 01, 2017, 01:04:22 PM
 #4

Did you install libssl-dev first?

It is mentioned in the release notes that you should first install libssl-dev. Check if that fixes the problem.
I use a debian based distro, so for me it's: sudo apt-get install libssl-dev

NewdayBTC (OP)
Jr. Member
*
Offline Offline

Activity: 76
Merit: 1


View Profile
September 01, 2017, 01:54:34 PM
 #5

Thanks for the reply! I am actually on a windows OS.

Do you think that I need a Linux Disto to run this program?

If not, how do I install libssl-dev on windows?
eternalgloom
Legendary
*
Offline Offline

Activity: 1792
Merit: 1283



View Profile WWW
September 01, 2017, 03:34:45 PM
Last edit: September 01, 2017, 03:45:50 PM by eternalgloom
 #6

Thanks for the reply! I am actually on a windows OS.

Do you think that I need a Linux Disto to run this program?

If not, how do I install libssl-dev on windows?
How did you follow all btctousd81's instructions when you're on Windows?

I mean, yum for example is a command line package manager for Linux distro's using RPM-based packaging, that shouldn't even work on Windows.

I'm pretty sure it's possible to run this on Windows, but everything in the documentation only includes instructions for installing it on Linux (Debian based distro's).

To run this on Windows, you might have to compile some of the dependancies yourself.

OR:

If you just want to apply RBF without having to run this python code, I'd suggest reading this article:
http://coinour.com/index.php/how-to-apply-replace-by-fee-to-save-the-bitcoin-transaction-fees/

You can just enable the option in Electrum Wink

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!