Bitcoin Forum
September 22, 2018, 10:02:27 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How to use this Python program!?  (Read 254 times)
NewdayBTC
Newbie
*
Offline Offline

Activity: 76
Merit: 0


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!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1537653747
Hero Member
*
Offline Offline

Posts: 1537653747

View Profile Personal Message (Offline)

Ignore
1537653747
Reply with quote  #2

1537653747
Report to moderator
1537653747
Hero Member
*
Offline Offline

Posts: 1537653747

View Profile Personal Message (Offline)

Ignore
1537653747
Reply with quote  #2

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

Activity: 392
Merit: 252


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
Newbie
*
Offline Offline

Activity: 76
Merit: 0


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: 1344
Merit: 1076


Crypto-Games.net: Multiple coins, multiple games


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


▄▄▄████████▄▄▄
▄██████████████████▄
▄██████████████████████▄
██████████████████████████
████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
████████████████████████████
██████████████████████████
▀██████████████████████▀
▀██████████████████▀
▀▀▀████████▀▀▀
   ███████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
███████
BTC  ◉PLAY  ◉XMR  ◉DOGE  ◉BCH  ◉STRAT  ◉ETH  ◉GAS  ◉LTC  ◉DASH  ◉PPC
     ▄▄██████████████▄▄
  ▄██████████████████████▄        █████
▄██████████████████████████▄      █████
████ ▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄ ████     ▄██▀
████ █████ ██████ █████ ████    ▄██▀
████ █████ ██████ █████ ████    ██▀
████ █████ ██████ █████ ████    ██
████ ▀▀▀▀▀ ▀▀▀▀▀▀ ▀▀▀▀▀ ████ ▄██████▄
████████████████████████████ ████████
███████▀            ▀███████ ▀██████▀
█████▀                ▀█████
▀██████████████████████████▀
  ▀▀████████████████████▀▀ 
✔️DICE           
✔️BLACKJACK
✔️PLINKO
✔️VIDEO POKER
✔️ROULETTE     
✔️LOTTO
NewdayBTC
Newbie
*
Offline Offline

Activity: 76
Merit: 0


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: 1344
Merit: 1076


Crypto-Games.net: Multiple coins, multiple games


View Profile WWW
September 01, 2017, 03:34:45 PM
 #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


▄▄▄████████▄▄▄
▄██████████████████▄
▄██████████████████████▄
██████████████████████████
████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
██████████████████████████████
████████████████████████████
██████████████████████████
▀██████████████████████▀
▀██████████████████▀
▀▀▀████████▀▀▀
   ███████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
██████████
███████
BTC  ◉PLAY  ◉XMR  ◉DOGE  ◉BCH  ◉STRAT  ◉ETH  ◉GAS  ◉LTC  ◉DASH  ◉PPC
     ▄▄██████████████▄▄
  ▄██████████████████████▄        █████
▄██████████████████████████▄      █████
████ ▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄ ████     ▄██▀
████ █████ ██████ █████ ████    ▄██▀
████ █████ ██████ █████ ████    ██▀
████ █████ ██████ █████ ████    ██
████ ▀▀▀▀▀ ▀▀▀▀▀▀ ▀▀▀▀▀ ████ ▄██████▄
████████████████████████████ ████████
███████▀            ▀███████ ▀██████▀
█████▀                ▀█████
▀██████████████████████████▀
  ▀▀████████████████████▀▀ 
✔️DICE           
✔️BLACKJACK
✔️PLINKO
✔️VIDEO POKER
✔️ROULETTE     
✔️LOTTO
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!