Skip to content

Commit

Permalink
rpcserver: Allow scripthash addrs in createrawsstx.
Browse files Browse the repository at this point in the history
This modifies the createrawsstx handler to accept pay-to-script-hash
addresses for the voting address since they are also valid.
  • Loading branch information
davecgh committed Sep 10, 2018
1 parent c409f53 commit 7b8f0dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ func handleCreateRawSStx(s *rpcServer, cmd interface{}, closeChan <-chan struct{
// server is currently on.
switch addr.(type) {
case *dcrutil.AddressPubKeyHash:
case *dcrutil.AddressScriptHash:
default:
return nil, rpcAddressKeyError("Invalid address type: "+
"%T", addr)
Expand Down

0 comments on commit 7b8f0dc

Please sign in to comment.