add some comments to graphql/sendRawTransaction
the comment is about missing things need to be addressed by sendRawTransaction
This commit is contained in:
parent
728f3a24be
commit
0dd6d1e3d4
|
@ -1044,6 +1044,9 @@ const queryProcs = {
|
||||||
}
|
}
|
||||||
|
|
||||||
proc sendRawTransaction(ud: RootRef, params: Args, parent: Node): RespResult {.apiPragma.} =
|
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)
|
let ctx = GraphqlContextRef(ud)
|
||||||
try:
|
try:
|
||||||
let data = hexToSeqByte(params[0].val.stringVal)
|
let data = hexToSeqByte(params[0].val.stringVal)
|
||||||
|
|
Loading…
Reference in New Issue