Bitcoin Forum
May 03, 2024, 12:02:58 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Very slow parsing of blocks that spend SegWit coins [SOLVED]  (Read 553 times)
piotr_n (OP)
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


aka tonikt


View Profile WWW
October 24, 2016, 04:01:36 PM
Last edit: October 24, 2016, 05:23:25 PM by piotr_n
 #1

It's probably a known problem, so maybe someone could give me a hint before I start digging into the problem, trying to reinvent the wheel.

My client has no support for SegWit (yet).
When it parses new testnet blocks (ones that spend segwit outputs), it takes ages to process them...

Does anyone know what is going on?

Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714694578
Hero Member
*
Offline Offline

Posts: 1714694578

View Profile Personal Message (Offline)

Ignore
1714694578
Reply with quote  #2

1714694578
Report to moderator
1714694578
Hero Member
*
Offline Offline

Posts: 1714694578

View Profile Personal Message (Offline)

Ignore
1714694578
Reply with quote  #2

1714694578
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6578


Just writing some code


View Profile WWW
October 24, 2016, 04:21:09 PM
 #2

It's probably some optimization issue with your client. I don't know of any known issues with slow parsing of the blocks.

You might want to ask this on the #bitcoin-core-dev IRC channel.

piotr_n (OP)
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


aka tonikt


View Profile WWW
October 24, 2016, 05:23:15 PM
 #3

Thanks.

I think I figured it out.

It was the core's consensus lib, which I use for cross-checking scripts (to make sure that my script processor returns the same result).

It was happening for blocks containing txs with 10000+ inputs, so if the script processing function needed extra ~6ms to finish, it was creating the problem.
Not sure whether it is the consensus lib itself (from 0.13.0) that is slow, or is it rather the (slow) way my app's engine calls the external dll...
Can't say, but after switch off the cross-checking, it's all good now.

Cheers

Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
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!