Skip to content

Commit

Permalink
selfcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
deemru committed Jul 27, 2021
1 parent 9994494 commit b8aa29d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions w8_updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,15 @@ function selftest()
$address = $RO->getAddressById( $aid );
$chainAmount = wk()->balance( $address, $assetId );

if( $a === 0 && $address === '3MkcWFcRjVjFvmyk1F4LECZcW1nkThUS2ug' ) // last GENERATOR
continue;

if( $chainAmount !== $amount )
{
if( $a === 0 &&
(
$address === '3P3aayN8kE6gXo7jSki7WUJHdTAF4X4S9xA' ||
$address === '3PKbwQQhUSxsTTkrj8FsVFcN3B9YBEiuBJT'
) ) // last GENERATOR
continue;

wk()->log( $a .': ' . $assetId . ' (' . $asset . ')' );
wk()->log( 'e', $address . ': ' . w8io_amount( $chainAmount, $decimals ) . ' !== ' . w8io_amount( $amount, $decimals ) );
exit;
Expand Down

0 comments on commit b8aa29d

Please sign in to comment.