Skip to content

Add bitcoincash prefix to additional rpc commands#54

Open
fyookball wants to merge 2 commits intogcash:masterfrom
fyookball:master
Open

Add bitcoincash prefix to additional rpc commands#54
fyookball wants to merge 2 commits intogcash:masterfrom
fyookball:master

Conversation

@fyookball
Copy link
Copy Markdown

This should handle gcash/bchd#260

Comment thread rpc/legacyrpc/methods.go
}

return p2shAddr.EncodeAddress(), nil
return w.ChainParams().CashAddressPrefix + ":" + p2shAddr.EncodeAddress(), nil
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: Maybe we want EncodeAddressWithPrefix()? Seems we are duplicating this code a lot...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants