Skip to content
Permalink
Browse files

added block reward support

  • Loading branch information...
deemru committed Oct 4, 2019
1 parent 033c439 commit d21acafc1dee263420f08d68bae8ca1842ab14a6
Showing with 3 additions and 3 deletions.
  1. +3 −3 include/w8io_blockchain_transactions.php
@@ -519,9 +519,9 @@ private function set_tx( $wtx )
return true;
}
private function block_fees( $at, $wtxs, $prev_wtxs )
private function block_fees( $at, $wtxs, $prev_wtxs, $block = null )
{
$fees = [ 0 => 0 ];
$fees = [ 0 => isset( $block['reward'] ) ? $block['reward'] : 0 ];
$prev = false;
for( ;; )
@@ -578,7 +578,7 @@ public function get_hang_waves( $at )
public function set_fees( $block, $wtxs, $prev_wtxs )
{
$at = $block['height'];
$fees = $this->block_fees( $at, $wtxs, $prev_wtxs );
$fees = $this->block_fees( $at, $wtxs, $prev_wtxs, $block );
$wtx = [];
$wtx['txid'] = $this->get_pair_txid( $at, true );

0 comments on commit d21acaf

Please sign in to comment.
You can’t perform that action at this time.