Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Persist the batch transaction number in the smart contract #9

Closed
ebaizel opened this issue Oct 25, 2018 · 1 comment
Closed

Persist the batch transaction number in the smart contract #9

ebaizel opened this issue Oct 25, 2018 · 1 comment
Assignees

Comments

@ebaizel
Copy link
Contributor

ebaizel commented Oct 25, 2018

https://github.com/decentralized-identity/sidetree-core/blob/master/docs/protocol.md#sidetree-transaction-processing

We'll need to persist the transaction number for each batch. We'll prob need another mapping to track this, smth like:

transactions[transactionNumber - 1] = ipfsHash

// and since we're currently setting the `anchors` mapping(hash) to a boolean, we could set it to the txNumber instead
anchors[ipfsHash] = transactionNumber
@jguyton
Copy link
Contributor

jguyton commented Nov 8, 2018

I believe this is done, check the dev branch. Closing.

@jguyton jguyton closed this as completed Nov 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants