Bitcoin Forum
April 19, 2024, 04:59:15 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electrum: What does bad-txns-vin-empty mean?  (Read 144 times)
rpstatic (OP)
Jr. Member
*
Offline Offline

Activity: 53
Merit: 7


View Profile
July 19, 2018, 08:52:19 AM
 #1

Code:
I wanted to test out a segwit wallet on electrum, but when I broadcast a new transaction I get the this error.
[code]
error: {'code': 1, 'message': 'the transaction was rejected by network rules.\n\n16: bad-txns-vin-empty

Steps to reproduce
1. Create new segwit wallet with electrum
2. Send funds to an andress from this wallet
3. Send funds from this address

What does this error mean and how can I fix it?[/code]
1713545955
Hero Member
*
Offline Offline

Posts: 1713545955

View Profile Personal Message (Offline)

Ignore
1713545955
Reply with quote  #2

1713545955
Report to moderator
In order to get the maximum amount of activity points possible, you just need to post once per day on average. Skipping days is OK as long as you maintain the average.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
AdolfinWolf
Legendary
*
Offline Offline

Activity: 1946
Merit: 1427


View Profile
July 19, 2018, 09:03:55 AM
Merited by HCP (1)
 #2

Code:
I wanted to test out a segwit wallet on electrum, but when I broadcast a new transaction I get the this error.
[code]
error: {'code': 1, 'message': 'the transaction was rejected by network rules.\n\n16: bad-txns-vin-empty

Steps to reproduce
1. Create new segwit wallet with electrum
2. Send funds to an andress from this wallet
3. Send funds from this address

What does this error mean and how can I fix it?[/code]

I think the error here in this case is related to you trying to spend coins with a segwit scrip/adress, while the wallet/server you are using doesn't recognize the script, and is thus unable to broadcast it.

Which is pretty weird, considering i also use Electrum segwit and never had any issues.

Try switching electrum servers, see if that does anything?

See https://bitcoin.stackexchange.com/questions/75942/16-bad-txns-vin-empty-code-26/75944

rpstatic (OP)
Jr. Member
*
Offline Offline

Activity: 53
Merit: 7


View Profile
July 19, 2018, 09:11:43 AM
 #3

I think the error is related to you trying to spend coins with a segwit scrip/adress, while the wallet/server you are using doesn't recognize the script, and is thus unable to broadcast it.

Which is pretty weird, considering i also use Electrum segwit and never had any issues.

Try switching electrum servers, see if that does anything?

https://bitcoin.stackexchange.com/questions/75942/16-bad-txns-vin-empty-code-26/75944

Thank you! Switching the server worked and I was able to broadcast the transaction.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
July 20, 2018, 12:54:47 PM
 #4

Seems like either the server you were connected to was non-SegWit compatible (possibly an old version of Bitcoin Core or ElectrumX etc)... or it was out of sync.

Either way, good to see you managed to get it working.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
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!