Skip to content

Added segwit addresses to indexer.#215

Merged
dangershony merged 1 commit intoblock-core:masterfrom
MudDev:patch-1
Sep 11, 2020
Merged

Added segwit addresses to indexer.#215
dangershony merged 1 commit intoblock-core:masterfrom
MudDev:patch-1

Conversation

@MudDev
Copy link
Copy Markdown
Member

@MudDev MudDev commented Sep 10, 2020

If the transaction is a segwit, return the address.

If the transaction is a segwit, return the address.
destinationAddress = script.GetDestinationAddress(network).ToString();
break;
case TxOutType.TX_SEGWIT:
destinationAddress = script.GetDestinationAddress(network).ToString();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

will this actually be a segwit address? or do we need to do some more conversions?
I will push for now we can fix later.

@dangershony dangershony merged commit 91940e2 into block-core:master Sep 11, 2020
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