Hello! I make small dApp games on Ethereum. Having heard about POA for a while, I decided to take the plunge and ported one of my games to Sokol.
As I am a beginner to programming in general, I was expecting the process to be arduous. It was a pleasant surprise to see how easy you guys make it. It’s as close to a straight clone as it can get!
However, I’m running into a problem on Sokol: when I try to subscribe to events on my frontend using web3.js and “watch”, sometimes the events register, sometimes they don’t.
The very same code works flawlessly on Ethereum, both Mainnet and Ropsten; and so I’m curious if there’s a particularity to Sokol/POA regarding events I’m missing.
Querying past events with “get” works just fine, so in the meantime I’ve resorted to querying all events every minute and updating the start block of that query to the end block of the latest event. It’s an acceptable solution for my usecase, even if it implies a one minute lag before the event log registers actions.
Again, I’m very much a newbie to programming so if there’s some other information I need to provide, let me know. I’m not asking for handholding, just curious if there’s any different specification between Ethereum and POA I should be aware of.
I’m loving the POA project so far, and can’t wait to experiment with xDai too. Cheers.