Skip to content

Commit

Permalink
rpcserver: add taproot deployment to getblockchaininfo
Browse files Browse the repository at this point in the history
  • Loading branch information
guggero committed Feb 17, 2021
1 parent 87e4cc3 commit e5c7097
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e5c7097

Please sign in to comment.