very basic history implemented

This commit is contained in:
Manuel Simon Hirsig
2016-01-16 19:00:59 +01:00
parent 10349381ad
commit c04ddfdd11
6 changed files with 33 additions and 20 deletions
+7 -1
View File
@@ -145,7 +145,13 @@ function scan_auctions_helper(i, n, k)
local auction_info = Aux.info.auction(i, state.job.type)
if auction_info then
wait_for_callback{state.job.on_read_auction, auction_info, recurse}
wait_for_callback{state.job.on_read_auction, auction_info, recurse }
local snapshot = Aux.persistence.load_snapshot()
if not snapshot.contains(auction_info.signature) then
snapshot.add(auction_info.signature)
Aux.stat_average.process_auction(auction_info)
end
else
recurse()
end