fix max tx
This commit is contained in:
parent
479d55de4a
commit
a9493190c2
@ -46,7 +46,7 @@ TransactionSchema.methods.byBlockHash = function txByBlockHash(hash, cb) {
|
|||||||
return this.model('Transaction').find(
|
return this.model('Transaction').find(
|
||||||
{ block: hash },
|
{ block: hash },
|
||||||
cb)
|
cb)
|
||||||
.limit(MAX_PAGE_TXS);
|
.limit(MAX_TXS);
|
||||||
};
|
};
|
||||||
|
|
||||||
TransactionSchema.methods.byAddress = function txByAddress(address, cb) {
|
TransactionSchema.methods.byAddress = function txByAddress(address, cb) {
|
||||||
@ -56,7 +56,8 @@ TransactionSchema.methods.byAddress = function txByAddress(address, cb) {
|
|||||||
{ 'inputs.address': address },
|
{ 'inputs.address': address },
|
||||||
{ 'outputs.address': address }],
|
{ 'outputs.address': address }],
|
||||||
},
|
},
|
||||||
cb);
|
cb)
|
||||||
|
.limit(MAX_TXS);
|
||||||
};
|
};
|
||||||
|
|
||||||
TransactionSchema.methods.countByBlock = function txByAddress(hash, cb) {
|
TransactionSchema.methods.countByBlock = function txByAddress(hash, cb) {
|
||||||
@ -88,7 +89,8 @@ TransactionSchema.methods.getEmptyInputs = function getEmptyInputs(cb) {
|
|||||||
'inputs.prevout.hash': { $ne: '0000000000000000000000000000000000000000000000000000000000000000' },
|
'inputs.prevout.hash': { $ne: '0000000000000000000000000000000000000000000000000000000000000000' },
|
||||||
'inputs.address': '',
|
'inputs.address': '',
|
||||||
},
|
},
|
||||||
cb);
|
cb)
|
||||||
|
.limit(MAX_TXS);
|
||||||
};
|
};
|
||||||
|
|
||||||
TransactionSchema.methods.updateInput = function updateInput(txid, inputid, value, address) {
|
TransactionSchema.methods.updateInput = function updateInput(txid, inputid, value, address) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user