Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
deemru committed Nov 13, 2021
1 parent 7d8a858 commit fc44c06
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,17 @@ function htmlscript( $tx )
$l = strlen( $f );
if( $l > 40 )
{
require_once 'include/RO.php';
$RO = new RO( W8DB );
$txid = $RO->getTxKeyByTxId( $f );

if( $txid !== false )
{
echo '<pre>';
w8io_print_transactions( false, 'r1 = ' . $txid, false, 100, 'txs', 3 );
echo '</pre><br>';
}

$wk = wk();
$tx = $wk->getTransactionById( $f );
if( $tx === false )
Expand Down
5 changes: 3 additions & 2 deletions w8_updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function selftest()

$balances = $RO->db->query( 'SELECT * FROM balances WHERE r2 = ' . $aid );
$i = 0;
$e = 0;
foreach( $balances as $balance )
{
if( ++$i % 10000 === 0 )
Expand All @@ -50,11 +51,11 @@ function selftest()

if( $chainAmount !== $amount )
{
wk()->log( 'e', $address . ': ' . w8io_amount( $chainAmount, $decimals ) . ' !== ' . w8io_amount( $amount, $decimals ) );
wk()->log( 'e', ++$e . ') ' . $address . ': ' . w8io_amount( $chainAmount, $decimals ) . ' !== ' . w8io_amount( $amount, $decimals ) );
}
}

wk()->log( 's', $a .': ' . $assetId . ' (' . $asset . ') ' . $i . ' OK');
wk()->log( 's', $a .': ' . $assetId . ' (' . $asset . ') ' . ( $i - $e ) . ' OK' . ( $e > 0 ? ( ' (' . $e . ' ERROR)' ) : '' ) );
}
exit( 'done' );
}
Expand Down

0 comments on commit fc44c06

Please sign in to comment.