rpcserver: add taproot deployment to getblockchaininfo

This commit is contained in:
Oliver Gugger 2021-02-17 11:07:12 +01:00
parent 3eac153437
commit 8a62cf0ef5
No known key found for this signature in database
GPG key ID: 8E4256593F177720

View file

@ -1256,6 +1256,9 @@ func handleGetBlockChainInfo(s *rpcServer, cmd interface{}, closeChan <-chan str
case chaincfg.DeploymentSegwit:
forkName = "segwit"
case chaincfg.DeploymentTaproot:
forkName = "taproot"
default:
return nil, &btcjson.RPCError{
Code: btcjson.ErrRPCInternal.Code,