add some comments to graphql/sendRawTransaction

the comment is about missing things need to be addressed
by sendRawTransaction
This commit is contained in:
jangko 2021-05-04 16:39:07 +07:00
parent 728f3a24be
commit 0dd6d1e3d4
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 3 additions and 0 deletions

View File

@ -1044,6 +1044,9 @@ const queryProcs = {
}
proc sendRawTransaction(ud: RootRef, params: Args, parent: Node): RespResult {.apiPragma.} =
# TODO: add tx validation and tx processing
# probably goes to tx pool
# if tx validation failed, the result will be null
let ctx = GraphqlContextRef(ud)
try:
let data = hexToSeqByte(params[0].val.stringVal)