Skip to content

Commit

Permalink
fix(db)!: fix uniqueness in ledger_index (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
grtlr committed Jun 14, 2022
1 parent 59562bd commit b5b7367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/collections/ledger_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl MongoDb {
.keys(doc! { "address": 1, "at.milestone_index": -1, "output_id": 1 })
.options(
IndexOptions::builder()
.unique(true)
.unique(false) // An output can be spent within the same milestone that it was created in.
.name("ledger_index".to_string())
.build(),
)
Expand Down

0 comments on commit b5b7367

Please sign in to comment.