mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #2311
df0cffed
cryptonote_protocol: warn if we see a higher top version we expect (moneromooo-monero)317ab21a
cryptonote_protocol: less strict check on top version on connect (moneromooo-monero)cc81a371
cryptonote_protocol: update target height when syncing too (moneromooo-monero)e2ad372b
cryptonote_protocol: simplify and remove unnecessary casts (moneromooo-monero)727e67ca
cryptonote_protocol: print peer top height along with its version (moneromooo-monero)b5345ef4
crypto: use malloc instead of alloca (moneromooo-monero)80794b31
thread_group: set thread size to THREAD_STACK_SIZE (moneromooo-monero)5524bc31
print peer id in 0 padded hex for consistency (moneromooo-monero)8f8cc09b
contrib: add sync_info to rlwrap command set (moneromooo-monero)70b8c6d7
cryptonote_protocol: misc fixes to the new sync algorithm (moneromooo-monero)
This commit is contained in:
commit
335681896a
11 changed files with 166 additions and 78 deletions
|
@ -314,6 +314,18 @@ POP_WARNINGS
|
|||
return str;
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
inline std::string pad_string(std::string s, size_t n, char c = ' ', bool prepend = false)
|
||||
{
|
||||
if (s.size() < n)
|
||||
{
|
||||
if (prepend)
|
||||
s = std::string(n - s.size(), c) + s;
|
||||
else
|
||||
s.append(n - s.size(), c);
|
||||
}
|
||||
return s;
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
template<class t_pod_type>
|
||||
std::string pod_to_hex(const t_pod_type& s)
|
||||
{
|
||||
|
|
|
@ -32,4 +32,5 @@ status
|
|||
stop_daemon
|
||||
stop_mining
|
||||
stop_save_graph
|
||||
sync_info
|
||||
unban
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue