Skip to content

Commit

Permalink
more hints
Browse files Browse the repository at this point in the history
  • Loading branch information
cooganb authored May 3, 2018
1 parent 9471630 commit 2f8ab76
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion wallet/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,30 @@ async function spend(fromAccount,toAccount,amountToSpend) {


// record output


// is "change" output needed?


// create transaction and add it to blockchain
var tr = Blockchain.createTransaction(trData);
Blockchain.insertBlock(
// TODO .createBlock method

);

// record outputs in our wallet (if needed)

}

function accountBalance(account) {
// TODO
var balance = 0;

// if (account in wallet.accounts) {

// }


// return balance;

}

0 comments on commit 2f8ab76

Please sign in to comment.