View Issue Details

IDProjectCategoryView StatusLast Update
0000002Timekoin ServerGeneral Issuepublic2012-06-20 16:23
ReporterKnightMB Assigned ToKnightMB  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version1.0 
Target Version2.41Fixed in Version1.1 
Summary0000002: Server Balance can be incorrect shortly after a Transaction Foundation is created
DescriptionServer balance is lower than it should be within 5 hours of a transaction foundation creation event.
Steps To ReproduceJust wait until another transaction foundation is created, check the balance in the web GUI. It will report lower than it should until the 5 hours has passed.
Additional InformationTransaction Foundations are created by all peers every few days as a way to index the Transaction History for quick access to balances. As a way to increase performance, the Timekoin server builds a balance index of recently checked public keys. This helps the server avoid running a balance check on the entire transaction history every time a transaction is being processed.

To avoid confusion in the GUI, the balance index is rebuilt shortly after transaction foundation creation process. During that in-between time, the balance index is still "stale" as it only has the balance of the keys in the index from a previous few days. This ends up reporting a "lower" total than it should in the GUI.

This has no affect on the transaction history; all transaction are still there and no balance hacks or double-spending could take place. It's merely confusing to the server administration should he/she be looking at the balance screen during that time.
TagsNo tags attached.

Activities

KnightMB

2012-06-19 15:01

administrator   ~0000001

This has been fixed for the next release.

The problem lay in the function that checked public key balances. It did not account for the time "lapse" during it's check and thus a gap of time means anything created (transactions or generation) were not being counted. This is what caused the lower than normal balance to show up in the web GUI.

Issue History

Date Modified Username Field Change
2012-06-19 14:54 KnightMB New Issue
2012-06-19 14:54 KnightMB Status new => assigned
2012-06-19 14:54 KnightMB Assigned To => KnightMB
2012-06-19 15:01 KnightMB Note Added: 0000001
2012-06-19 15:01 KnightMB Status assigned => closed
2012-06-19 15:01 KnightMB Resolution open => fixed
2012-06-19 15:01 KnightMB Fixed in Version 2.41 => 1.1
2012-06-20 16:23 KnightMB Status closed => resolved