rpcserver: add taproot deployment to getblockchaininfo
This commit is contained in:
parent
a0a92386e6
commit
d069d16fc7
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue