-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial implementation #4
Conversation
37424c8
to
103eee0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using the logging framework from Oasis Core instead of fmt.Printf
.
Otherwise the most problematic thing seems to be the transaction identifiers, see my inline comments. Also we should probably consider using Bech32 for account identifiers as discussed and we should use the hash of the canonical genesis document as the network identifier instead of just the chain ID field (as this is what we use internally).
Index: genBlk.Height, | ||
Hash: genBlk.Hash, | ||
}, | ||
Peers: []*types.Peer{}, // TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will require a method in the consensus backend to return the list of peers (or just a similar Status
method that returns all these things like the current and genesis block metadata together with the list of peers to avoid multiple requests). Having something like a Status
method for the consensus backend seems useful anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c7404df
to
fbe4dcc
Compare
const OpBurn = "Burn" | ||
|
||
// OpStatusOK is the OK status. | ||
const OpStatusOK = "OK" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One potential issue which may or may not be problematic: this currently only emits successful operations as events are only generated once transactions succeed. Failures will currently never be propagated.
Index: genBlk.Height, | ||
Hash: genBlk.Hash, | ||
}, | ||
Peers: []*types.Peer{}, // TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
697444a
to
7c9f6e2
Compare
04a504b
to
4f4f75c
Compare
4f4f75c
to
de7486e
Compare
OK, I think this is ready for final review now. Thanks for the great comments so far! We can add the remaining stuff in subsequent PRs (using |
Agreed, can you file issues in this repository so that we don't forget about these things? |
Closes #1.