Commit 0ebd7aa2 authored by Iuri Matias's avatar Iuri Matias

add transactions to get block methods

parent 3763ae7a
...@@ -38,9 +38,7 @@ Blocks.prototype.eth_getBlockByNumber = function (payload, cb) { ...@@ -38,9 +38,7 @@ Blocks.prototype.eth_getBlockByNumber = function (payload, cb) {
'gasLimit': toHex(block.header.gasLimit), 'gasLimit': toHex(block.header.gasLimit),
'gasUsed': toHex(block.header.gasUsed), 'gasUsed': toHex(block.header.gasUsed),
"timestamp": toHex(block.header.timestamp), "timestamp": toHex(block.header.timestamp),
// TODO: add transactions "transactions": block.transactions.map((t) => "0x" + t.hash().toString('hex')),
// block.transactions
"transactions": [],
"uncles": [] "uncles": []
} }
...@@ -79,9 +77,7 @@ Blocks.prototype.eth_getBlockByHash = function (payload, cb) { ...@@ -79,9 +77,7 @@ Blocks.prototype.eth_getBlockByHash = function (payload, cb) {
'gasLimit': toHex(block.header.gasLimit), 'gasLimit': toHex(block.header.gasLimit),
'gasUsed': toHex(block.header.gasUsed), 'gasUsed': toHex(block.header.gasUsed),
"timestamp": toHex(block.header.timestamp), "timestamp": toHex(block.header.timestamp),
// TODO: add transactions "transactions": block.transactions.map((t) => "0x" + t.hash().toString('hex')),
// block.transactions
"transactions": [],
"uncles": [] "uncles": []
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment