[Proposal] Show CS address in getrawtransaction output#784
[Proposal] Show CS address in getrawtransaction output#784zeptin merged 3 commits intostratisproject:release/1.1.1.0from
Conversation
There was a problem hiding this comment.
LGTM. My only concern is that we should probably not be showing the pubkeys that make up the cold staking script to the user as normal addresses at all - to prevent them from being used for spending funds towards. This represents a move away from that potential goal.
In the interests of making as few changes at a time as possible, perhaps this should go in as-is, but we could indeed change the version byte for cold staking addresses in future. This would require changes to the cold staking controller and possibly the wallet UI too. There may be other places in the codebase that would need to be made aware of a new address type. Either that or make the display of the addresses purely cosmetic output with no recognition of the modified addresses in the codebase. This could have its own drawbacks though, as the API/RPC would be outputting 'addresses' that it can't then give any further information about. |
…t#784) * Show CS address in getrawtransaction output * Move type determination * Update src/Stratis.Bitcoin/Controllers/Models/TransactionModel.cs
The rationale for this is in the code comments; essentially this is to improve the user experience for block explorer users trying to check their cold staking balances or staking activity.
After picking a cold staking transaction ID at random, the modified
getrawtransactionoutput looks like this: