coins: minor.
This commit is contained in:
parent
c681b75b7b
commit
931a2a9398
@ -228,13 +228,11 @@ Coins.prototype.spend = function spend(index) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
Coins.prototype.remove = function remove(index) {
|
Coins.prototype.remove = function remove(index) {
|
||||||
var entry;
|
var entry = this.get(index);
|
||||||
|
|
||||||
if (index >= this.outputs.length)
|
if (!entry)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
entry = this.outputs[index];
|
|
||||||
|
|
||||||
this.outputs[index] = null;
|
this.outputs[index] = null;
|
||||||
this.cleanup();
|
this.cleanup();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user