Skip to content
Permalink
Browse files

fix txid can be block for fees tx

  • Loading branch information...
deemru committed Sep 7, 2019
1 parent af94268 commit cf3c17c9a10cabf6aafcd59d73acaba9a6caaf9a
Showing with 6 additions and 1 deletion.
  1. +6 −1 index.php
@@ -34,7 +34,12 @@
$txid = $api->get_transactions_id( $f );
if( $txid !== false )
exit( header( 'location: ' . W8IO_ROOT . 'tx/' . base58Encode( $txid ) ) );
{
if( strlen( $txid ) >= 32 )
exit( header( 'location: ' . W8IO_ROOT . 'tx/' . base58Encode( $txid ) ) );
else
exit( header( 'location: ' . W8IO_ROOT . 'blocks/' . $txid ) );
}
}
else
if( $address === 'GENERATORS' )

0 comments on commit cf3c17c

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