Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add double spent flag to transactions #4

Merged
merged 3 commits into from
Aug 18, 2016

Conversation

tal-beja
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.08%) to 5.74% when pulling f6ea319 on COLU-661-add-double-spent-flag-to-new-tr into cd29809 on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.08%) to 5.74% when pulling f6ea319 on COLU-661-add-double-spent-flag-to-new-tr into cd29809 on master.

@@ -4,6 +4,7 @@ module.exports = function (mongoose, properties) {
coinbase: {type: String, index: true},
txid: {type: String, index: true},
vout: {type: Number, index: true},
doubleSpentTxid: {type: String, index: true},
Copy link
Contributor

@oleiba oleiba Aug 17, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe consider using a partial index, for only where this field exists. From MongoDB docs:

Partial indexes only index the documents in a collection that meet a specified filter expression.
(Since Mongo 3.2, partial indexes are preferred over sparse indexes)

@oleiba
Copy link
Contributor

oleiba commented Aug 17, 2016

Looks good. Small change and on point.

@coveralls
Copy link

coveralls commented Aug 18, 2016

Coverage Status

Coverage decreased (-0.08%) to 5.74% when pulling 187e5b3 on COLU-661-add-double-spent-flag-to-new-tr into cd29809 on master.

@coveralls
Copy link

coveralls commented Aug 18, 2016

Coverage Status

Coverage decreased (-0.08%) to 5.74% when pulling c20beb7 on COLU-661-add-double-spent-flag-to-new-tr into cd29809 on master.

@oleiba oleiba merged commit 88f4fa7 into master Aug 18, 2016
@oleiba oleiba deleted the COLU-661-add-double-spent-flag-to-new-tr branch August 18, 2016 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants