chaindb: minor.
This commit is contained in:
parent
280d5d38e5
commit
3565d5dfe7
@ -2157,12 +2157,12 @@ class ChainState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
add(coin) {
|
add(coin) {
|
||||||
this.coin++;
|
this.coin += 1;
|
||||||
this.value += coin.value;
|
this.value += coin.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
spend(coin) {
|
spend(coin) {
|
||||||
this.coin--;
|
this.coin -= 1;
|
||||||
this.value -= coin.value;
|
this.value -= coin.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user