Showing 1 of 1 files from the diff.

@@ -959,7 +959,7 @@
Loading
959 959
        state.unconfirmed(path, -coin.value);
960 960
961 961
        // FINALIZE is a special case: locked coins _leave_ the wallet.
962 -
        if (tx.output(i) && tx.covenant(i).type === types.FINALIZE) {
962 +
        if (tx.output(i) && tx.covenant(i).isFinalize()) {
963 963
          if (!block)
964 964
            state.ulocked(path, -tx.outputs[i].value);
965 965
          else
@@ -1166,7 +1166,7 @@
Loading
1166 1166
        state.confirmed(path, -coin.value);
1167 1167
1168 1168
        // FINALIZE is a special case: locked coins _leave_ the wallet.
1169 -
        if (tx.output(i) && tx.covenant(i).type === types.FINALIZE)
1169 +
        if (tx.output(i) && tx.covenant(i).isFinalize())
1170 1170
          state.clocked(path, -tx.outputs[i].value);
1171 1171
1172 1172
        await this.removeCredit(b, credit, path);
@@ -1314,7 +1314,7 @@
Loading
1314 1314
1315 1315
        // FINALIZE is a special case: locked coins _leave_ the wallet.
1316 1316
        // In this case a TX is erased, adding them back.
1317 -
        if (tx.output(i) && tx.covenant(i).type === types.FINALIZE) {
1317 +
        if (tx.output(i) && tx.covenant(i).isFinalize()) {
1318 1318
          if (!block)
1319 1319
            state.ulocked(path, tx.outputs[i].value);
1320 1320
          else
@@ -1522,7 +1522,7 @@
Loading
1522 1522
1523 1523
        // FINALIZE is a special case: locked coins _leave_ the wallet.
1524 1524
        // In this case a TX is reversed, adding them back.
1525 -
        if (tx.output(i) && tx.covenant(i).type === types.FINALIZE)
1525 +
        if (tx.output(i) && tx.covenant(i).isFinalize())
1526 1526
            state.clocked(path, tx.outputs[i].value);
1527 1527
1528 1528
        // Resave the credit and mark it
Files Coverage
lib 62.60%
Project Totals (129 files) 62.60%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading