mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-20 19:11:08 +03:00
Fix regression in reading stratum messages (#2450)
It was introduced in #2418, it turns out std read_line always appends to the string, not writes from the beginning, so when we have multiple workers to read from all messages are concatenated
This commit is contained in:
parent
f8aab05d76
commit
55f4ee3166
1 changed files with 2 additions and 0 deletions
|
@ -301,6 +301,8 @@ impl StratumServer {
|
|||
}
|
||||
};
|
||||
|
||||
the_message.clear();
|
||||
|
||||
let mut stratum_stats = stratum_stats.write();
|
||||
let worker_stats_id = stratum_stats
|
||||
.worker_stats
|
||||
|
|
Loading…
Reference in a new issue