Total number of transactions can differ between different servers #2

Open
opened 2025-12-15 18:15:30 +00:00 by bitwise · 1 comment
Owner

This is observed with EFL (216), On a total of 270273 transactions this server showed four extra transactions.

Comparision showed it concerns doubles:

  • One tx occurs three times, one after the other
  • One pair of tx occurs double, one after the other

The double pair could have happened after a restart of the corewallet
Emptying the ROT datadir and restart of ROT repaired the situation (10s)

This is observed with EFL (216), On a total of 270273 transactions this server showed four extra transactions. Comparision showed it concerns doubles: - One tx occurs three times, one after the other - One pair of tx occurs double, one after the other The double pair could have happened after a restart of the corewallet Emptying the ROT datadir and restart of ROT repaired the situation (10s)
Author
Owner

Added txdump to function handleClientRequest()... to investigate this. Dumps all transactions in A/txdump

   } elseif ($a=="txdump") {
        if ($b==""){
            $n=$TX_table['bucket'][TOP];
            for ($i=1;$i<=$n;$i++){
                $record=hashtable_read($TX_table['bucket'],$i);
                file_put_contents(A."/txdump", bin2hex($record[0])."\n",FILE_APPEND);
            }
        }
        $output.= "(".(microtime(true)-$start).")\n\n";        
Added txdump to function handleClientRequest()... to investigate this. Dumps all transactions in A/txdump ``` } elseif ($a=="txdump") { if ($b==""){ $n=$TX_table['bucket'][TOP]; for ($i=1;$i<=$n;$i++){ $record=hashtable_read($TX_table['bucket'],$i); file_put_contents(A."/txdump", bin2hex($record[0])."\n",FILE_APPEND); } } $output.= "(".(microtime(true)-$start).")\n\n"; ```
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Communitycoins.Rooty/Ring-Of-Trust-service#2
No description provided.