| In recent years,with the development of renewable energy technologies,microgrids in the energy internet have received increasing attention due to their ability to manage these renewable energy sources effectively.Microgrids can provide a platform for trading electricity between users.How to conduct trusted transactions of electricity on this platform is the most important issue,and traditional centralized systems may pose centralization risks.Blockchain technology is decentralized,adapted to the microgrid environment,and has tamper-evident and traceability,making it an effective solution for realizing electricity transactions on microgrids.However,the poor scalability and insufficient throughput of blockchain technology itself hinder its practical application on microgrids,which are also characterized by high dynamics and a large number of nodes.Therefore,this paper addresses the dynamic changes of nodes and the efficiency of on-chain and off-chain interactions in the energy internet with high-frequency transactions,and improves the transaction performance of the energy internet through an optimized off-chain scaling technology.Firstly,to address the problem of high cost of monitoring services in the state channel applied to the energy internet,a state channel operation cost optimization method for dynamic microgrids is proposed.By studying the transaction process in the state channel and combining smart contract and oracle technology,a state channel monitoring mechanism based on decentralized oracle is proposed.Through simulation experiments based on microgrid power transactions,economic cost index of this mechanism are compared with the monitoring service mechanism of the Ethernet Thunderbolt Network,and it is demonstrated that the proposed mechanism reduces the economic cost of microgrid nodes.Secondly,aiming at the problem that the state channel has too many interactions with the blockchain and reduces the throughput of the blockchain,a batch management method of state channel for multi-users of microgrid is proposed.By studying the capital consumption characteristics of state channel network routing,combined with state channel factory technology,a state channel factory management mechanism based on capital rebalancing is proposed.Through simulation experiments based on microgrid power transactions,the number of blockchain interactions between this method and traditional state channel factories is compared,and it is demonstrated that this method can effectively improve the throughput of the whole system. |