Created
June 28, 2018 23:17
-
-
Save mgraczyk/55b6c1799b0f992ee4509f702f72d653 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case *messages.QueryRequest: | |
response := &messages.QueryResponse{} | |
if msg.Transaction != nil && msg.Transaction.Verify() { | |
stronglyPreferred := state.node.OnQueryTx(msg.Transaction) | |
response.Transaction = msg.Transaction.Id | |
response.StronglyPreferred = stronglyPreferred | |
ctx.Respond(response) | |
} | |
// [OT] Always respond with empty? Does this overwrite? | |
ctx.Respond(response) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment