rpcserver: add taproot deployment to getblockchaininfo

This commit is contained in:
Oliver Gugger 2021-02-17 11:07:12 +01:00 committed by Roy Lee
parent a0a92386e6
commit d069d16fc7

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,