PR review catches and cleanups
This commit is contained in:
parent
e27c7bcf87
commit
ba1333f84f
@ -146,9 +146,7 @@ module.exports = function transactionAPI(router) {
|
|||||||
if (err) {
|
if (err) {
|
||||||
res.status(501).send();
|
res.status(501).send();
|
||||||
logger.log('err', err);
|
logger.log('err', err);
|
||||||
}
|
} else if (block[0]) {
|
||||||
|
|
||||||
if (block[0]) {
|
|
||||||
const b = block[0];
|
const b = block[0];
|
||||||
res.json({
|
res.json({
|
||||||
pagesTotal: 1,
|
pagesTotal: 1,
|
||||||
|
|||||||
@ -7,30 +7,13 @@ const logger = require('../logger');
|
|||||||
|
|
||||||
function parse(entry, txs) {
|
function parse(entry, txs) {
|
||||||
txs.forEach((tx) => {
|
txs.forEach((tx) => {
|
||||||
//const txJSON = tx.toJSON();
|
|
||||||
|
|
||||||
tx.outputs.forEach((output) => {
|
tx.outputs.forEach((output) => {
|
||||||
const outputJSON = output.toJSON();
|
const outputJSON = output.toJSON();
|
||||||
|
|
||||||
/*
|
|
||||||
return new OutputModel({
|
|
||||||
address: outputJSON.address,
|
|
||||||
script: outputJSON.script,
|
|
||||||
value: outputJSON.value,
|
|
||||||
});*/
|
|
||||||
});
|
});
|
||||||
|
|
||||||
tx.inputs.forEach((input) => {
|
tx.inputs.forEach((input) => {
|
||||||
const inputJSON = input.toJSON();
|
const inputJSON = input.toJSON();
|
||||||
|
|
||||||
/* return new InputModel({
|
|
||||||
prevout: inputJSON.prevout,
|
|
||||||
script: inputJSON.script,
|
|
||||||
witness: inputJSON.witness,
|
|
||||||
sequence: inputJSON.sequence,
|
|
||||||
address: inputJSON.address,
|
|
||||||
});
|
|
||||||
})*/
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user