Bitcoin Forum
November 09, 2024, 03:31:58 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: OP_RETURN transaction returns error  (Read 102 times)
odolvlobo (OP)
Legendary
*
Offline Offline

Activity: 4494
Merit: 3403



View Profile
September 03, 2021, 11:48:08 PM
Merited by o_e_l_e_o (4), HCP (2)
 #1

I am trying to use Electrum to burn some dust UTXOs (547 sats) by creating a custom OP_RETURN transaction. Everything seems fine until I broadcast, and then I get this error:

Quote
The server returned an error when broadcasting the transaction.
Consider trying to connect to a different server, or updating Electrum.

The transaction was rejected because it is too large (in bytes).

Here is the "pay to" line (basically OP_RETURN <random 16 bytes>, 0):

Code:
OP_RETURN B03240B863832E01B44D3BCBC8308E8F, 0

Also, when I export the transaction and try to broadcast it through various sites, they have problems with the transaction. Here is the raw transaction (go ahead and try to broadcast it if you like):

Code:
0200000000010166988a1d333797b5c3cbf24b26212205d023f0ff8c7392f41594b1dee4ea953c3801000000fdffffff010000000000000000126a10b03240b863832e01b44d3bcbc8308e8f02473044022055022ae713c275e3feb37dd48f19bf07bc190e2f382038e3328e6ad939f93bbf0220431bc40ba285e9f167d45afd62986358f461744d0c301423e09aa2e1dc5874c1012102b514df7be7511c3baf72afb6df5d5cdcbd9989ef0ef1b294c5be9c7b28f68f2018aa0a00

This has worked in the past, but now it doesn't. Does anyone know what might be wrong and how I can succeed?

I am using Electrum 4.1.4 on a Mac with various servers.



Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
pooya87
Legendary
*
Offline Offline

Activity: 3626
Merit: 11020


Crypto Swap Exchange


View Profile
September 04, 2021, 03:42:30 AM
Merited by o_e_l_e_o (4), HCP (2)
 #2

This is very weird indeed.
It seems that the Electrum node running bitcoin core thinks that your transaction has a weight bigger than 400,000 and rejects it with a tx-size error message and your Electrum client translates it to The transaction was rejected because it is too large (in bytes)..

I can't find this particular error anywhere else.

P.S. blockcypher explorer usually bypasses some of the standard rules and it pushed the tx but it doesn't seem to be propagating well https://live.blockcypher.com/btc/tx/21f045ec1677f98f6d94503742b1a871aefd75499ceb6f5a5fbd32643ab3d5d5/

P.P.S. Looking at your transaction, it is too small (78 bytes stripped). You should add more bytes to the OP_RETURN output to increase it to at least 82 bytes. This is the actual reason why bitcoin core's mempool rejects your transaction.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
nc50lc
Legendary
*
Offline Offline

Activity: 2590
Merit: 6356


Self-proclaimed Genius


View Profile
September 04, 2021, 04:47:44 AM
Merited by o_e_l_e_o (4), HCP (2)
 #3

I'm getting a different error which is: tx-size-small, in Bitcoin Core.

I think it has to do with this recent commit: https://github.com/bitcoin/bitcoin/commit/7485488e907e236133a016ba7064c89bf9ab6da3
I don't know how OP_RETURN is calculated to the MIN_STANDARD_TX_NONWITNESS_SIZE but adding 4 more bytes enables me to broadcast a similar transaction (in testnet).
Code:
OP_RETURN 00000000B03240B863832E01B44D3BCBC8308E8F, 0

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Coding Enthusiast
Legendary
*
Offline Offline

Activity: 1042
Merit: 2805


Bitcoin and C♯ Enthusiast


View Profile WWW
September 04, 2021, 04:49:34 AM
Last edit: September 08, 2021, 05:53:11 PM by Coding Enthusiast
Merited by HCP (2)
 #4

I took the liberty of starting a new issue based on this: https://github.com/spesmilo/electrum/issues/7483
Update: This is fixed in 07bd2fe.

Projects List+Suggestion box
Donate: 1Q9s or bc1q
|
|
|
FinderOuter(0.19.1)Ann-git
Denovo(0.7.0)Ann-git
Bitcoin.Net(0.26.0)Ann-git
|
|
|
BitcoinTransactionTool(0.11.0)Ann-git
WatchOnlyBitcoinWallet(3.2.1)Ann-git
SharpPusher(0.12.0)Ann-git
odolvlobo (OP)
Legendary
*
Offline Offline

Activity: 4494
Merit: 3403



View Profile
September 04, 2021, 07:20:46 AM
 #5

I'm getting a different error which is: tx-size-small, in Bitcoin Core.

I think it has to do with this recent commit: https://github.com/bitcoin/bitcoin/commit/7485488e907e236133a016ba7064c89bf9ab6da3
I don't know how OP_RETURN is calculated to the MIN_STANDARD_TX_NONWITNESS_SIZE but adding 4 more bytes enables me to broadcast a similar transaction (in testnet).
Code:
OP_RETURN 00000000B03240B863832E01B44D3BCBC8308E8F, 0

I suspect that is the problem. I added 4 more bytes and electrum was able to broadcast the transaction.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
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!