index block on tx model

This commit is contained in:
tenthirtyone 2017-08-28 12:49:46 -04:00
parent ee0d5595b3
commit 2146ff290b

View File

@ -28,6 +28,7 @@ const TransactionSchema = new Schema({
});
TransactionSchema.index({ hash: 1 });
TransactionSchema.index({ block: 1 });
TransactionSchema.index({ 'outputs.address': 1 });
TransactionSchema.index({ 'inputs.address': 1 });