Pages:
Author

Topic: [ANNOUNCE] Electrum - Lightweight Bitcoin Client - page 65. (Read 274569 times)

hero member
Activity: 784
Merit: 1010
Bitcoin Mayor of Las Vegas
Saw this featured hinted at in another thread...

How, exactly, does electrum monitor off-line address balances?
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Yes that would help wouldn't it?  Apologies for your waste your time to write all that, I'm usually better at question asking...

Well mainly I just wanted to do a test send of 0.001 BTC & there is currently 0.1001 BTC ( http://blockexplorer.com/address/1oqzzEJKVyChXkgEWb6wkcWoWVPi9KsdN ) and the fee is currently set to the default have not touched it and in the code it seemed both of those payto and sendtx both relayed to sendtx function so i thought the issue might have been related.

The reason there is a 0001 instead of a 0.001 is that was a copy error from the terminal.

Both commands still give me the same errors previously posted above. Please, let me know if i left anything out.

I cannot tell you what caused the first error; I would need to see the transaction. I guess it was not correctly written to your file

concerning the second error:
the default fee is a fee per tx input.
the transaction you're trying to create has 2 inputs, so the fee would be 0.002 (unless you use the -f option). this explains the error.

it seems that I am observing that python wont connect to the Internet properly to get the balance on my box and there for my tx_file contained the error displaying i had a balance of zero.
hero member
Activity: 784
Merit: 1010
Bitcoin Mayor of Las Vegas
Just curious, what's keeping this from working on a Mac?
full member
Activity: 162
Merit: 100
I sure will  Grin
hero member
Activity: 784
Merit: 1010
Bitcoin Mayor of Las Vegas
 Grin Send a little tip to ThomasV if it works better for you. He's been very responsive to our requests and bug reports.  Grin
full member
Activity: 162
Merit: 100
Oh my, I had totally missed that. Will update and see if it works better.  Cool
Thank you.

Update:
Updated and it works perfectly now!

Electrum in my <3
hero member
Activity: 784
Merit: 1010
Bitcoin Mayor of Las Vegas
We're up to .52. Lots of but fixes since .42. Try the latest. I'm very happy with this client.
full member
Activity: 162
Merit: 100
I get 'Socket Error' all the time. Anyone else having this problem? Kind of annyoing thinking about changing back to the traditional client.

I'm using 0.42.
legendary
Activity: 1896
Merit: 1353
Yes that would help wouldn't it?  Apologies for your waste your time to write all that, I'm usually better at question asking...

Well mainly I just wanted to do a test send of 0.001 BTC & there is currently 0.1001 BTC ( http://blockexplorer.com/address/1oqzzEJKVyChXkgEWb6wkcWoWVPi9KsdN ) and the fee is currently set to the default have not touched it and in the code it seemed both of those payto and sendtx both relayed to sendtx function so i thought the issue might have been related.

The reason there is a 0001 instead of a 0.001 is that was a copy error from the terminal.

Both commands still give me the same errors previously posted above. Please, let me know if i left anything out.

I cannot tell you what caused the first error; I would need to see the transaction. I guess it was not correctly written to your file

concerning the second error:
the default fee is a fee per tx input.
the transaction you're trying to create has 2 inputs, so the fee would be 0.002 (unless you use the -f option). this explains the error.
legendary
Activity: 1896
Merit: 1353
For some reason it thinks my balance is zero...
Quote
./electrum balance                   
Connected to electrum.bitcoins.sk:50001
0
~/electrum#

indeed, electrum.bitcoin.sk is having problems.
you would see it with the gui ("server not ready") but the command line lacks a warning
try with ecdsa.org
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
For some reason it thinks my balance is zero...
Quote
./electrum balance                   
Connected to electrum.bitcoins.sk:50001
0
~/electrum#


But my addresses say other wise(well just one address has bitcoins in it but here is the output)
Quote
:~/electrum# ./electrum addresses           
1oqzzEJKVyChXkgEWb6wkcWoWVPi9KsdN
13CQNUaA1W91jSRGyBBjAGKWTEbawLQZmL   
1JXXdR7UziFyiGGwkRLaTPqneDwfw5SHzi   
1J8tQak4EFMPoUc3qQgggNq52GbvyViLPt   
1Fsxqa46eDtXsaBbrCvPZqQ5UTDF2d3mkF
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
I'm on angstrom still and when I followed the instructions found here: https://en.bitcoin.it/wiki/Electrum#How_to_send_a_transaction_with_an_offline_wallet

I get stuck at the sendtx command and get the following terminal output:
(The file name is indeed called tx_file1 - not typo)

Quote
:~/electrum# electrum sendtx `cat tx_file1`
Connected to electrum.bitcoins.sk:50001
Traceback (most recent call last):
  File "/usr/bin/electrum", line 448, in
    r, h = wallet.sendtx( tx )
  File "/usr/lib/python2.7/site-packages/electrum/wallet.py", line 813, in sendtx
    tx_hash = Hash(tx.decode('hex') )[::-1].encode('hex')
  File "/usr/lib/python2.7/encodings/hex_codec.py", line 42, in hex_decode
    output = binascii.a2b_hex(input)
TypeError: Odd-length string
Thanks mate



*Updated:

I tried the payto command as well and got a different error

Quote
electrum payto 17W7Hpno2CiD9Ma3YBrZfLaQrx61buFxXE 0001
Connected to electrum.bitcoins.sk:50001
Password:
Traceback (most recent call last):
  File "/usr/bin/electrum", line 429, in
    fee = options.tx_fee, change_addr = change_addr, from_addr = from_addr )
  File "/usr/lib/python2.7/site-packages/electrum/wallet.py", line 799, in mktx
    raise BaseException("Not enough funds")
BaseException: Not enough funds
None


ok, can you first explain why you updated your first report with another one, completely different and seemingly unrelated?
it might be that you solved the first problem and encountered another one, but if that is the case, it would be clearer to remove your first report completely.
In the absence of information I can only make guesses as to whether your first problem is solved.

Second, your 2nd traceback says "not enough funds".
if you take the time to post this, I assume that it is because you think there is a bug here, and that it should have accepted the transaction.
so, it would help me to know this:
 - did you notice the "not enough funds" message before you posted your bug report?
 - does your wallet actually have enough funds for the transaction? (1btc + fee)
 - is there a reason why you typed 0001 for the amount? looks like you mistyped a decimal point

More generally, when posting a bug report, try to give comprehensive information about the situation.

Yes that would help wouldn't it?  Apologies for your waste your time to write all that, I'm usually better at question asking...

Well mainly I just wanted to do a test send of 0.001 BTC & there is currently 0.1001 BTC ( http://blockexplorer.com/address/1oqzzEJKVyChXkgEWb6wkcWoWVPi9KsdN ) and the fee is currently set to the default have not touched it and in the code it seemed both of those payto and sendtx both relayed to sendtx function so i thought the issue might have been related.

The reason there is a 0001 instead of a 0.001 is that was a copy error from the terminal.

Both commands still give me the same errors previously posted above. Please, let me know if i left anything out.
legendary
Activity: 1896
Merit: 1353
I'm on angstrom still and when I followed the instructions found here: https://en.bitcoin.it/wiki/Electrum#How_to_send_a_transaction_with_an_offline_wallet

I get stuck at the sendtx command and get the following terminal output:
(The file name is indeed called tx_file1 - not typo)

Quote
:~/electrum# electrum sendtx `cat tx_file1`
Connected to electrum.bitcoins.sk:50001
Traceback (most recent call last):
  File "/usr/bin/electrum", line 448, in
    r, h = wallet.sendtx( tx )
  File "/usr/lib/python2.7/site-packages/electrum/wallet.py", line 813, in sendtx
    tx_hash = Hash(tx.decode('hex') )[::-1].encode('hex')
  File "/usr/lib/python2.7/encodings/hex_codec.py", line 42, in hex_decode
    output = binascii.a2b_hex(input)
TypeError: Odd-length string
Thanks mate



*Updated:

I tried the payto command as well and got a different error

Quote
electrum payto 17W7Hpno2CiD9Ma3YBrZfLaQrx61buFxXE 0001
Connected to electrum.bitcoins.sk:50001
Password:
Traceback (most recent call last):
  File "/usr/bin/electrum", line 429, in
    fee = options.tx_fee, change_addr = change_addr, from_addr = from_addr )
  File "/usr/lib/python2.7/site-packages/electrum/wallet.py", line 799, in mktx
    raise BaseException("Not enough funds")
BaseException: Not enough funds
None


ok, can you first explain why you updated your first report with another one, completely different and seemingly unrelated?
it might be that you solved the first problem and encountered another one, but if that is the case, it would be clearer to remove your first report completely.
In the absence of information I can only make guesses as to whether your first problem is solved.

Second, your 2nd traceback says "not enough funds".
if you take the time to post this, I assume that it is because you think there is a bug here, and that it should have accepted the transaction.
so, it would help me to know this:
 - did you notice the "not enough funds" message before you posted your bug report?
 - does your wallet actually have enough funds for the transaction? (1btc + fee)
 - is there a reason why you typed 0001 for the amount? looks like you mistyped a decimal point

More generally, when posting a bug report, try to give comprehensive information about the situation.
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
I'm on angstrom still and when I followed the instructions found here: https://en.bitcoin.it/wiki/Electrum#How_to_send_a_transaction_with_an_offline_wallet

I get stuck at the sendtx command and get the following terminal output:
(The file name is indeed called tx_file1 - not typo)

Quote
:~/electrum# electrum sendtx `cat tx_file1`
Connected to electrum.bitcoins.sk:50001
Traceback (most recent call last):
  File "/usr/bin/electrum", line 448, in
    r, h = wallet.sendtx( tx )
  File "/usr/lib/python2.7/site-packages/electrum/wallet.py", line 813, in sendtx
    tx_hash = Hash(tx.decode('hex') )[::-1].encode('hex')
  File "/usr/lib/python2.7/encodings/hex_codec.py", line 42, in hex_decode
    output = binascii.a2b_hex(input)
TypeError: Odd-length string
Thanks mate



*Updated:

I tried the payto command as well and got a different error

Quote
electrum payto 17W7Hpno2CiD9Ma3YBrZfLaQrx61buFxXE 0001
Connected to electrum.bitcoins.sk:50001
Password:
Traceback (most recent call last):
  File "/usr/bin/electrum", line 429, in
    fee = options.tx_fee, change_addr = change_addr, from_addr = from_addr )
  File "/usr/lib/python2.7/site-packages/electrum/wallet.py", line 799, in mktx
    raise BaseException("Not enough funds")
BaseException: Not enough funds
None

legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Quote
(I hope you have this problem because you are using the current git version)

or not?
Oh yeah forgot to answer that because i was so excited it worked: yes I git cloned electrum directly to the angstrom box

in that case you should have a file called mki18n.py
I guess I typed it in wrong when I tried to run it -- so to answer your question yeah its there.
legendary
Activity: 1896
Merit: 1353
Quote
(I hope you have this problem because you are using the current git version)

or not?
Oh yeah forgot to answer that because i was so excited it worked: yes I git cloned electrum directly to the angstrom box

in that case you should have a file called mki18n.py
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Quote
(I hope you have this problem because you are using the current git version)

or not?
Oh yeah forgot to answer that because i was so excited it worked: yes I git cloned electrum directly to the angstrom box
legendary
Activity: 1896
Merit: 1353
Quote
(I hope you have this problem because you are using the current git version)

or not?
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
Might I suggest you add a
Code:
sys.exit(0)

at the end of the while(True) in the watch_addresses file and then add an option to allow the script to end after its looped?

I've been trying to call this python script from another language and it just sits there awaiting for the connection to end and it never did i spent hours trying to figure out why. Anyways my situation is probably really specific but still adding a comment in thurr to reduce future programmers frustration or something. anyways great work mate, I've learned a lot about bitcoin tearing your library apart!

indeed, an option to end the loop would be useful
In fact I am thinking of making it a more general purpose program, that calls a command-line program each time an address receives or sends a payment
Something similar to the linux "at" command.



Would be interesting to see how that comes out, I don't know python well enough to contribute to anything but I see the amount of time it took to create everything..

I'm having an issue on an angstrom linux flavor maybe you could help me out with this Its a fresh install python version 2.7.2 and i installed electrum with no bugs(with the edcsa, slowaes packages installed) but i get the following error
Quote
Traceback (most recent call last):
  File "setup.py", line 18, in
    for lang in os.listdir('locale'):
OSError: [Errno 2] No such file or directory: 'locale'


What shall I do?  (I'm guessing for a quick fix I should look through the python and set the locale but i thought you'd like to know bow this error.)

just create the locale dir, or run mki18n.py
(I hope you have this problem because you are using the current git version)


To those who run into this issue I found:
I couldn't find where mki18n.py was so I just created one directory named "locale" (with out quotations) inside the electrum folder and the elctrum setup.py install file didn't return any errors and seems to be working fine thus far. Thanks again thomasV
legendary
Activity: 1896
Merit: 1353
Might I suggest you add a
Code:
sys.exit(0)

at the end of the while(True) in the watch_addresses file and then add an option to allow the script to end after its looped?

I've been trying to call this python script from another language and it just sits there awaiting for the connection to end and it never did i spent hours trying to figure out why. Anyways my situation is probably really specific but still adding a comment in thurr to reduce future programmers frustration or something. anyways great work mate, I've learned a lot about bitcoin tearing your library apart!

indeed, an option to end the loop would be useful
In fact I am thinking of making it a more general purpose program, that calls a command-line program each time an address receives or sends a payment
Something similar to the linux "at" command.



Would be interesting to see how that comes out, I don't know python well enough to contribute to anything but I see the amount of time it took to create everything..

I'm having an issue on an angstrom linux flavor maybe you could help me out with this Its a fresh install python version 2.7.2 and i installed electrum with no bugs(with the edcsa, slowaes packages installed) but i get the following error
Quote
Traceback (most recent call last):
  File "setup.py", line 18, in
    for lang in os.listdir('locale'):
OSError: [Errno 2] No such file or directory: 'locale'


What shall I do?  (I'm guessing for a quick fix I should look through the python and set the locale but i thought you'd like to know bow this error.)

just create the locale dir, or run mki18n.py
(I hope you have this problem because you are using the current git version)
Pages:
Jump to: