adshares / ads

ADS Blockchain
Other
21 stars 4 forks source link

function get_log returns sometimes tx.time equal 0 #139

Closed PawelPodkalicki closed 6 years ago

PawelPodkalicki commented 6 years ago

I called get_log function several times. After change user get_log returned tx.time equal 0.

echo '{"run":"get_log"}' | ads -w . | grep "\"time\"" -m 1

First call:

[1533305724] GOT REQUEST {"run":"get_log"}
LOG: print from 0 (00000000)
        "time": "0",

Second call:

[1533305725] GOT REQUEST {"run":"get_log"}
LOG: print from 0 (00000000)
LOG: setting last time to 1533305700 (5B646364)
        "time": "1533305700",
PawelPodkalicki commented 6 years ago

Field tx.data corresponds to request from parameter. First call created new log file. Second completed it, so time was updated automatically.