p2pool peer "is ahead on mainchain"
Hello im back,

run into a weird bug on using my p2pool.

my p2pool is attached to a remote monerod node, but p2pool's log is showing the following:

```
2022-02-13 23:38:27.3857 SideChain verified block at height = 1374907, depth = 0, id = 772fa427e2aa3effd434db38c7bf7893b8b919ddeec3b5c4bbc22d78ed7305c5, mainchain height = 2558957
2022-02-13 23:38:27.3857 P2PServer Trying to broadcast a block 772fa427e2aa3effd434db38c7bf7893b8b919ddeec3b5c4bbc22d78ed7305c5 ahead on mainchain (mainchain height 2558957, current height is 2558276)
2022-02-13 23:38:27.3858 SideChain new chain tip: next height = 1374908, next difficulty = 1300791931, main chain height = 2558957
2022-02-13 23:38:27.3859 BlockTemplate base  reward = 0.703381772395 XMR, 40 transactions, fees = 0.001300520000 XMR, weight = 115578
2022-02-13 23:38:27.3863 BlockTemplate final reward = 0.704682292395 XMR, weight = 118402, outputs = 72, 40 of 40 transactions included
2022-02-13 23:38:27.3899 P2PServer peer 98.28.252.84:37889 is ahead on mainchain (height 2558957, your height 2558276). Is your monerod stuck or lagging?
2022-02-13 23:38:27.3979 P2PServer peer 198.211.120.53:37889 is ahead on mainchain (height 2558957, your height 2558276). Is your monerod stuck or lagging?
2022-02-13 23:38:27.4321 P2PServer peer 84.195.108.87:37889 is ahead on mainchain (height 2558957, your height 2558276). Is your monerod stuck or lagging?
2022-02-13 23:38:27.4321 P2PServer peer 62.210.244.4:37889 is ahead on mainchain (height 2558957, your height 2558276). Is your monerod stuck or lagging?
2022-02-13 23:38:27.4504 P2PServer peer 91.200.124.137:37889 is ahead on mainchain (height 2558957, your height 2558276). Is your monerod stuck or lagging?
2022-02-13 23:38:27.7694 P2PServer peer 189.36.128.26:37899 is ahead on mainchain (height 2558957, your height 2558276). Is your monerod stuck or lagging?
2022-02-13 23:38:28.0460 P2PServer peer 177.105.248.130:37889 is ahead on mainchain (height 2558957, your height 2558276). Is your monerod stuck or lagging?
2022-02-13 23:38:45.8084 P2PServer peer 188.192.63.99:37889 is ahead on mainchain (height 2558957, your height 2558276). Is your monerod stuck or lagging?
2022-02-13 23:38:45.8086 SideChain add_external_block: block is built on top of an unknown mainchain block a69145e9727da1671f957c8e993497859fc8abf083b73c7cb0582f0f2c6a50eb, mainchain reorg might've happened
2022-02-13 23:38:45.8100 SideChain add_external_block: couldn't get mainchain difficulty for height = 2558957
2022-02-13 23:38:45.8101 SideChain add_block: height = 1374908, id = 8a79344631eb23df36afd2b3c89be4b70884b055fa40e6b04471f84d66803ae8, mainchain height = 2558957, verified = 0
2022-02-13 23:38:45.8139 SideChain verified block at height = 1374908, depth = 0, id = 8a79344631eb23df36afd2b3c89be4b70884b055fa40e6b04471f84d66803ae8, mainchain height = 2558957
2022-02-13 23:38:45.8139 P2PServer Trying to broadcast a block 8a79344631eb23df36afd2b3c89be4b70884b055fa40e6b04471f84d66803ae8 ahead on mainchain (mainchain height 2558957, current height is 2558276)
2022-02-13 23:38:45.8140 SideChain new chain tip: next height = 1374909, next difficulty = 1300430409, main chain height = 2558957
2022-02-13 23:38:45.8141 BlockTemplate base  reward = 0.703381772395 XMR, 40 transactions, fees = 0.001300520000 XMR, weight = 115578
2022-02-13 23:38:45.8143 BlockTemplate final reward = 0.704682292395 XMR, weight = 118402, outputs = 72, 40 of 40 transactions included
2022-02-13 23:38:45.8160 P2PServer peer 198.211.120.53:37889 is ahead on mainchain (height 2558957, your height 2558276). Is your monerod stuck or lagging?
2022-02-13 23:38:45.8259 P2PServer peer 98.28.252.84:37889 is ahead on mainchain (height 2558957, your height 2558276). Is your monerod stuck or lagging?
2022-02-13 23:38:45.8263 P2PServer peer 91.200.124.137:37889 is ahead on mainchain (height 2558957, your height 2558276). Is your monerod stuck or lagging?
2022-02-13 23:38:45.8310 P2PServer peer 84.195.108.87:37889 is ahead on mainchain (height 2558957, your height 2558276). Is your monerod stuck or lagging?
2022-02-13 23:38:45.8896 P2PServer peer 202.130.123.154:37889 is ahead on mainchain (height 2558957, your height 2558276). Is your monerod stuck or lagging?
2022-02-13 23:38:45.9205 P2PServer peer 62.210.244.4:37889 is ahead on mainchain (height 2558957, your height 2558276). Is your monerod stuck or lagging?
2022-02-13 23:38:45.9471 P2PServer peer 221.176.214.214:37889 is ahead on mainchain (height 2558957, your height 2558276). Is your monerod stuck or lagging?
2022-02-13 23:38:46.1272 P2PServer peer 189.36.128.26:37899 is ahead on mainchain (height 2558957, your height 2558276). Is your monerod stuck or lagging?
2022-02-13 23:38:46.3181 P2PServer peer 177.105.248.130:37889 is ahead on mainchain (height 2558957, your height 2558276). Is your monerod stuck or lagging?

```

i checked the monerod node, its not lagging and fully updated to the latest block height.

everything is fixed when i restart p2pool

what could be the reason for the lagging error? my network? or something else.

thanks