Bitcoin Forum
May 08, 2024, 05:44:14 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Testnet transaction is not broadcasted/confirmed within 5 hours  (Read 170 times)
Springfieldmen (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 3


View Profile
July 01, 2022, 02:42:16 PM
Merited by NotATether (3)
 #1

Trying to send transaction using python lib https://github.com/petertodd/python-bitcoinlib

We debugged rest API which broadcasts to service chain.so and it was successful:

https://chain.so/tx/BTCTEST/98d9f2bc3f65b0ca81f775f43c2f48b6ffe29fcfa06779c7ab299709ea7fc639

DST address is our BitPay testnet wallet,
SRC addresses come generated from python-bitcoinlib using wallet.get_key()

Also we even can't find it on other services.

Also we tried same to to post transaction to bitaps.com and we can't see it there too.

Probably someone can give a clue where to look, what can be wrong and why Confidence on chain.so is 0%. Probably you can recommend other service?

Code is very straightforward:

Code:
wallet = wallet_create_or_open(name='MainWallet', network='testnet', witness_type='segwit')
transaction = wallet.send_to(
  to_address=body.address,
  amount=decimal_to_satoshi(body.amount),
  fee='low', offline=True,
)
transaction.send(offline=False)
1715190254
Hero Member
*
Offline Offline

Posts: 1715190254

View Profile Personal Message (Offline)

Ignore
1715190254
Reply with quote  #2

1715190254
Report to moderator
1715190254
Hero Member
*
Offline Offline

Posts: 1715190254

View Profile Personal Message (Offline)

Ignore
1715190254
Reply with quote  #2

1715190254
Report to moderator
You can see the statistics of your reports to moderators on the "Report to moderator" pages.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715190254
Hero Member
*
Offline Offline

Posts: 1715190254

View Profile Personal Message (Offline)

Ignore
1715190254
Reply with quote  #2

1715190254
Report to moderator
BitMaxz
Legendary
*
Offline Offline

Activity: 3248
Merit: 2965


Block halving is coming.


View Profile WWW
July 01, 2022, 03:59:52 PM
Merited by Coding Enthusiast (2), ABCbits (1)
 #2

When I check the transaction from chain.so it wasn't yet confirmed I tried to copy the raw hex and try to broadcast it to blockcypher testnet it broadcasted but it still stuck.
I check the raw hex into https://tbtc.bitaps.com/broadcast but there is an error it shows "Broadcast transaction failed: min relay fee not met, 111 < 141 (code 66)"

Based on the error it seems that you are sending tBTC with a below minimum fee.

Would you mind trying to bump or increase the fee and broadcast it to blockcypher testnet.
Check the source code of the Bitcoinlib you might be able to change the minimum fee.

█▀▀▀











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











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

Activity: 1039
Merit: 2783


Bitcoin and C♯ Enthusiast


View Profile WWW
July 02, 2022, 07:41:58 AM
Merited by BlackHatCoiner (2), LoyceV (1)
 #3

I had some free time so I mined your transaction on TestNet. Enjoy!

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
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5591


Self-proclaimed Genius


View Profile
July 03, 2022, 04:36:48 AM
 #4

98d9f2bc3f65b0ca81f775f43c2f48b6ffe29fcfa06779c7ab299709ea7fc639
You transaction was mined by Coding Enthusiast but take note that under normal circumstances,
it wont easily propagate to the network since most of the nodes wont relay it and miners will likely reject a similar transaction in mainnet.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
hZti
Hero Member
*****
Offline Offline

Activity: 952
Merit: 642

Magic


View Profile
July 06, 2022, 04:59:22 PM
 #5

The fee of the transaction was simply to low for it to get accepted. If Im not wrong it was even below 1 sat/vbyte wich is to less to be accepted at all. It should have been refunded to you after some days but it was luckily manually included in a block. In the real bitcoin network it would only have been done if you pay a mining pool a fee which would be quite high.
hZti
Hero Member
*****
Offline Offline

Activity: 952
Merit: 642

Magic


View Profile
July 09, 2022, 02:03:06 PM
 #6

It should have been refunded to you after some days but it was luckily manually included in a block.

To be precise, it's not refunded but the unconfirmed transaction is dropped/removed from mempool by node after some time (usually 2 weeks) or when the mempool is full which causes transaction with low fee rate removed first.

Technically this is true but for most users it is only important if their transaction is now stuck forever or if at one point they will get the coins back in their wallet so they can resend them. What I was wondering after reading that 0 sats/vByte transactions can at least make it to the mempool, if you could simply send an infinite amount of transactions to clog up up the mempool? This transactions will never spam the blockchain, but wouldn't clogging up the mempool be enough to mess with the network. Imagine somebody does millions of transactions per day and will not stop because for him it is essentially free.
pooya87
Legendary
*
Offline Offline

Activity: 3444
Merit: 10555



View Profile
July 10, 2022, 03:39:30 AM
 #7

What I was wondering after reading that 0 sats/vByte transactions can at least make it to the mempool, if you could simply send an infinite amount of transactions to clog up up the mempool? This transactions will never spam the blockchain, but wouldn't clogging up the mempool be enough to mess with the network. Imagine somebody does millions of transactions per day and will not stop because for him it is essentially free.
Each node has its own mempool and its own rules for transactions that they accept in it. Majority of nodes use the default settings that rejects 0 fee transactions and non-standard transactions meaning such txs with 0 fee would never be propagated throughout the network just like how OP's transaction never reached 99% of the network and was only found on one explorer with loose rules.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5591


Self-proclaimed Genius


View Profile
July 10, 2022, 07:58:54 AM
 #8

What I was wondering after reading that 0 sats/vByte transactions can at least make it to the mempool, if you could simply send an infinite amount of transactions to clog up up the mempool? This transactions will never spam the blockchain, but wouldn't clogging up the mempool be enough to mess with the network. Imagine somebody does millions of transactions per day and will not stop because for him it is essentially free.
By adjusting your node's configuration, yes, you can accept 0-fee transactions to your own mempool.
However, when relaying that transaction to your peers, you'll see that almost all of them wont accept it.

In that scenario, only those nodes that accept 0-fee transactions will be affected by the spammer.
IMO, the damage isn't even serious because a node's mempool has a default size limit so, it won't accept any more 0-fee transactions if the limit has passed and will drop a number for any 1+ sat/vB transaction received.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Springfieldmen (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 3


View Profile
July 12, 2022, 07:55:04 PM
 #9

Oh, thanks a lot!!! You helped me a lot, but had a daughter born and was not able to respond! You rock bitcointalk members 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!