Skip to content

Conversation

@WhoSoup
Copy link
Member

@WhoSoup WhoSoup commented Sep 2, 2020

This was noticed by @ilzheev: The naming of the entry credit outputs was inconsistent across the library.

The FBlock had OutECs:

OutECs []TransactionAddress `json:"outecs"`

Whereas Transactions/Pending Transactions had ECOutputs:

ECOutputs []*TransAddress `json:"ecoutputs"`

ECOutputs []TransactionAddress

This PR renames the FBlock variable to ECOutputs. Both the parsing of FBlock outputs and Pending Transactions are new additions in this release, whereas Transaction.ECOutputs is the one that may actually be in use. Plus, I prefer "ECOutputs" to "OutECs".

The root cause is an inconsistency in the factomd api itself, due to inconsistent naming there. However, that's not something we can fix without API changes, so that would be slated for V3.

@PaulBernier PaulBernier merged commit afafc3a into FactomProject:develop Sep 3, 2020
PaulBernier pushed a commit that referenced this pull request Dec 19, 2020
PaulBernier pushed a commit that referenced this pull request Dec 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants