mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-22 19:39:22 +00:00
Fixed wrong diff in api/network/stats
This commit is contained in:
parent
70ff4ba859
commit
b26c4616d7
1 changed files with 0 additions and 2 deletions
|
@ -237,14 +237,12 @@ void p2pool::handle_chain_main(ChainMain& data, const char* extra)
|
|||
WriteLock lock(m_mainchainLock);
|
||||
|
||||
ChainMain& c = m_mainchainByHeight[data.height];
|
||||
c.difficulty = data.difficulty ? data.difficulty : c.difficulty;
|
||||
c.height = data.height;
|
||||
c.timestamp = data.timestamp;
|
||||
c.reward = data.reward;
|
||||
|
||||
// data.id not filled in here, but c.id should be available. Copy it to data.id for logging
|
||||
data.id = c.id;
|
||||
data.difficulty = c.difficulty;
|
||||
|
||||
m_mainchainByHash[c.id] = c;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue