mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-08-18 12:38:46 -06:00
Fixed wrong diff in api/network/stats
This commit is contained in:
parent
70ff4ba859
commit
b26c4616d7
@ -237,14 +237,12 @@ void p2pool::handle_chain_main(ChainMain& data, const char* extra)
|
|||||||
WriteLock lock(m_mainchainLock);
|
WriteLock lock(m_mainchainLock);
|
||||||
|
|
||||||
ChainMain& c = m_mainchainByHeight[data.height];
|
ChainMain& c = m_mainchainByHeight[data.height];
|
||||||
c.difficulty = data.difficulty ? data.difficulty : c.difficulty;
|
|
||||||
c.height = data.height;
|
c.height = data.height;
|
||||||
c.timestamp = data.timestamp;
|
c.timestamp = data.timestamp;
|
||||||
c.reward = data.reward;
|
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 not filled in here, but c.id should be available. Copy it to data.id for logging
|
||||||
data.id = c.id;
|
data.id = c.id;
|
||||||
data.difficulty = c.difficulty;
|
|
||||||
|
|
||||||
m_mainchainByHash[c.id] = c;
|
m_mainchainByHash[c.id] = c;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user