Skip to content

Commit

Permalink
more log
Browse files Browse the repository at this point in the history
  • Loading branch information
pciavald committed Jan 18, 2018
1 parent 776e715 commit 166627b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export class ColdstakeComponent {

this._rpc.call('listunspent').subscribe(unspent => {

this.log.d('listunspent', unspent);

this.hotstaking = {
txs: [],
amount: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class RevertColdstakingComponent implements OnInit {

sentTXs++;
totalFee += res.fee;
this.log.d(`revert ${sentTXs} fees`, tx);
this.log.d(`revert ${sentTXs} fees`, res);

if (sentTXs === this.utxos.txs.length) {
this.fee = totalFee;
Expand Down Expand Up @@ -88,6 +88,7 @@ export class RevertColdstakingComponent implements OnInit {
}], 'revert coldstaking', '', 4, 64, false, JSON.stringify({
inputs: tx.inputs
})]).subscribe(res => {

this.log.d('revert response', res);
amount += tx.amount;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ export class ZapColdstakingComponent {

zap() {

this.log.d('zap tx', this.utxos.amount, this.script, this.utxos.txs);

this._rpc.call('sendtypeto', ['part', 'part', [{
subfee: true,
address: 'script',
Expand Down

0 comments on commit 166627b

Please sign in to comment.