Bitcoin Forum
April 19, 2018, 06:32:18 PM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: 0.13.1 call to getblocktemplate failing on testnet  (Read 1057 times)
jonnybravo0311
Legendary
*
Offline Offline

Activity: 1344
Merit: 1014


Mine at Jonny's Pool


View Profile WWW
November 07, 2016, 02:42:11 PM
 #1

All,

Firstly, I apologize if this should have been started in another area.

I've recently started work on supporting SegWit on my pool.  As is typical, I always ensure I execute against testnet well before I put anything into the live network.

So, I fire up my trusty dev box and build 0.13.1 from source (I had 0.12.0 on the box already).  Everything goes swimmingly, and I start up the daemon.  Blocks start downloading and everything synchronizes just fine.  First call I make is
Code:
bitcoin-cli getblocktemplate

The result was rather shocking:
Code:
error code: -8
error message:
Support for 'segwit' rule requires explicit client support

I've got 0.13.1 running locally on my laptop, so I called GBT there.  Returned exactly what I was expecting.  The obvious difference between the two networks is that segwit is active on testnet, while it isn't on live.

I now called
Code:
bitcoin-cli getinfo

Rather strange message came back from that call:
Code:
{
  "version": 130100,
  "protocolversion": 70014,
  "walletversion": 60000,
  "balance": 819.87897567,
  "blocks": 1031754,
  "timeoffset": 0,
  "connections": 8,
  "proxy": "",
  "difficulty": 75262.00820103039,
  "testnet": true,
  "keypoololdest": 1459284919,
  "keypoolsize": 100,
  "paytxfee": 0.00000000,
  "relayfee": 0.00001000,
  "errors": "Warning: unknown new rules activated (versionbit 28)"
}

Is this what is preventing me from successfully building a block template, but allowing other calls to successfully execute?

Any help or guidance would be greatly appreciated.

Jonny's Pool - Mine with us and help us grow!  Support a pool that supports Bitcoin, not a hardware manufacturer's pockets!  No SPV cheats.  No empty blocks.
1524162738
Hero Member
*
Offline Offline

Posts: 1524162738

View Profile Personal Message (Offline)

Ignore
1524162738
Reply with quote  #2

1524162738
Report to moderator
1524162738
Hero Member
*
Offline Offline

Posts: 1524162738

View Profile Personal Message (Offline)

Ignore
1524162738
Reply with quote  #2

1524162738
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1524162738
Hero Member
*
Offline Offline

Posts: 1524162738

View Profile Personal Message (Offline)

Ignore
1524162738
Reply with quote  #2

1524162738
Report to moderator
1524162738
Hero Member
*
Offline Offline

Posts: 1524162738

View Profile Personal Message (Offline)

Ignore
1524162738
Reply with quote  #2

1524162738
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 1372
Merit: 1269


3F1Y9yquzvY6RWvKbw2n2zeo9V5mvBhADU


View Profile WWW
November 07, 2016, 02:46:50 PM
 #2

I believe you need to run the command like this
Code:
getblocktemplate '{"rules":["segwit"]}'
The segwit rule needs to be explicit.

jonnybravo0311
Legendary
*
Offline Offline

Activity: 1344
Merit: 1014


Mine at Jonny's Pool


View Profile WWW
November 07, 2016, 04:09:49 PM
 #3

That solved it.  Thanks for the help!

/locked

Jonny's Pool - Mine with us and help us grow!  Support a pool that supports Bitcoin, not a hardware manufacturer's pockets!  No SPV cheats.  No empty blocks.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!