Skip to content

Show CS address in getrawtransaction output#811

Merged
fassadlr merged 1 commit intostratisproject:release/1.1.1.0from
zeptin:coldstaking-20211203
Dec 3, 2021
Merged

Show CS address in getrawtransaction output#811
fassadlr merged 1 commit intostratisproject:release/1.1.1.0from
zeptin:coldstaking-20211203

Conversation

@zeptin
Copy link
Collaborator

@zeptin zeptin commented Dec 3, 2021

@zeptin zeptin requested a review from fassadlr December 3, 2021 03:44
// This may have caused user confusion, however, as the modified addresses would not look like those they used to configure the cold staking setup, making searching for them on a block explorer more difficult.
if (script.IsScriptType(ScriptType.ColdStaking))
{
var coldPubKeyHash = new KeyId(script.ToBytes(true).SafeSubarray(28, 20));
Copy link
Contributor

@quantumagi quantumagi Dec 3, 2021

Choose a reason for hiding this comment

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

Can this ColdStakingScriptTemplate method be used to extract this value instead?

public bool ExtractScriptPubKeyParameters(Script scriptPubKey, out KeyId hotPubKeyHash, out KeyId coldPubKeyHash)

Copy link
Contributor

Choose a reason for hiding this comment

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

@quantumagi this was previously already merged to 1.1.1.0 but I recreated the branch which caused the commit to be lost but perhaps something to note for @zeptin ?

@fassadlr fassadlr merged commit d99fa86 into stratisproject:release/1.1.1.0 Dec 3, 2021
@zeptin zeptin deleted the coldstaking-20211203 branch December 28, 2021 15:37
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.

3 participants