Skip to content

Commit

Permalink
Merge PR #826 from 'nodech/mempool-invalidations'
Browse files Browse the repository at this point in the history
  • Loading branch information
nodech committed Jul 17, 2023
1 parent 8d529cc commit a7145dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/mempool/contractstate.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ class ContractState {
}

handleExpired(nameHash, items) {
return this.toSet(this.updates, nameHash, items);
this.toSet(this.updates, nameHash, items);
this.toSet(this.reveals, nameHash, items);
return this;
}

handleOpen(nameHash, items) {
Expand Down Expand Up @@ -335,7 +337,7 @@ class ContractState {
const state = ns.state(nextHeight, network);

switch (state) {
case states.OPEN:
case states.OPENING:
this.handleOpen(nameHash, invalid);
break;
case states.BIDDING:
Expand Down
2 changes: 1 addition & 1 deletion lib/primitives/covenant.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ class Covenant extends bio.Struct {
*/

format() {
return `<Covenant: ${this.type}:${this.toString()}>`;
return `<Covenant: ${typesByVal[this.type]}:${this.toString()}>`;
}

/**
Expand Down

0 comments on commit a7145dc

Please sign in to comment.