Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

check unlock-timeout overflow #5668

Merged
merged 1 commit into from
Sep 14, 2018
Merged

check unlock-timeout overflow #5668

merged 1 commit into from
Sep 14, 2018

Conversation

EugeneChung
Copy link
Contributor

Should be added if timeout_time.time_since_epoch().count() is negative on Ubuntu 16.04.

$ ./build/programs/keyos/keyos --unlock-timeout 9999999999 --http-server-address 127.0.0.1:8900
2018-09-14T15:00:44.373 thread-0 wallet_plugin.cpp:42 plugin_initialize ] initializing wallet plugin
2018-09-14T15:00:44.373 thread-0 wallet_plugin.cpp:68 plugin_initialize ] 3120011 invalid_lock_timeout_exception: Wallet lock timeout is invalid
Overflow on timeout_time, specified 9999999999, now 1536937244373317352, timeout_time -6909806830336234264
{"t":"9999999999","now":"1536937244373317352","timeout_time":-6909806830336234264}
thread-0 wallet_manager.cpp:47 set_timeout

Should be added if timeout_time.time_since_epoch().count() is negative on Ubuntu 16.04.

$ ./build/programs/keyos/keyos --unlock-timeout 9999999999 --http-server-address 127.0.0.1:8900
2018-09-14T15:00:44.373 thread-0   wallet_plugin.cpp:42          plugin_initialize    ] initializing wallet plugin
2018-09-14T15:00:44.373 thread-0   wallet_plugin.cpp:68          plugin_initialize    ] 3120011 invalid_lock_timeout_exception: Wallet lock timeout is invalid
Overflow on timeout_time, specified 9999999999, now 1536937244373317352, timeout_time -6909806830336234264
    {"t":"9999999999","now":"1536937244373317352","timeout_time":-6909806830336234264}
    thread-0  wallet_manager.cpp:47 set_timeout
@heifner heifner merged commit b95ad0a into EOSIO:develop Sep 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants