I'm guessing you'd need to use it as a proxy, where all work is going through to your normal p2pool node (with payment address set to your pools address) and you were recording shares like normal on the front side of your proxy. I have no idea how multipool does it.
If it's of any help code-wise, here is a proxy setup someone wrote to act as a CPPSRB proxy between small miners and p2pool. The pool gets all the fees and then pays out miners based on their scores like any normal pool.
http://proxypool.doge.st/Thanks a lot! This looks like it would do the job. I would need to check if it's stable and relatively bug-free and to change functions responsible for saving user shares data into database (because this software stores shares in a different way than my software does). This won't be difficult as I already have read related parts of its source code and identified what and where would need to be changed. Seems pretty straightforward even if I don't know Haskell language and this is actually my first time seeing any Haskell source code. But most languages are similar to all other, aren't they?
I'll wait with this until I'm sure that DOGE is here to stay. I don't mean stay as a coin but to stay near top of profitability list. DOGE rewards are halving in 1800 blocks = 30 hours and it should affect its profitability. For DOGE profitability to stay unchanged there would need one of the following to happen: 1) DOGE/BTC price remains the same but difficulty halves because half of miners went away; 2) Difficulty remains the same but price doubles; 3) Some combination of the above (e.g. difficulty drops by 50% and price rises by 50%).
I doubt any of these will happen overnight. They might happen but it will most likely take time - days or weeks - and I believe we will have enough our own hahspower at the time when DOGE profitability backs up to be able to mine them without proxying to p2pool.
In case if one of the above happened overnight, I'll start proxying our DOGE mining to p2pool using the software above. Thanks a lot for pointing me into this. I'll see what will happen when reward halves and will act accordingly then. My best guess is that DOGE will stop being that profitable for the next days/weeks, but of course I might be wrong. I don't think anyone predicted DOGE success and adoption rate so it might surprise again.
In the meantime we continue mining DOGE when it's significantly more profitable than other coins. That means using between 0% and 80% of our hashpower in any hour to mine DOGE. We'll be doing this until hitting next fat DOGE block and then I disable DOGE entirely again. Halving the reward will be coming soon and with our average time expected to mine a block it won't be worth to invest our time any more.