Disclosure of Invention
Therefore, the invention provides a block chain-based power grid-connection method and a regulation node, which are used for solving the problems of power supply shortage, power supply waste and complex operability caused by unreasonable grid-connection methods in the prior art.
To achieve the above object, a first aspect of the present invention provides a blockchain-based power grid-connection method, the method including:
determining grid-connected electric quantity of the distributed power nodes according to rewards obtained by the distributed power nodes in the blockchain network in a preset time period, total rewards sent to the distributed power nodes by the current regulation and control node in the preset time period and preset maximum grid-connected electric quantity;
and sending the grid-connected electric quantity to the distributed power nodes so that the distributed power nodes can carry out power grid connection according to the grid-connected electric quantity.
In some embodiments, the method further comprises:
issuing a computing task in a blockchain network;
receiving a calculation result of the calculation task broadcasted by each distributed power node;
and determining the distributed power nodes to be rewarded according to the calculation result, and sending rewards to the distributed power nodes to be rewarded.
In some embodiments, the determining the distributed power node to be rewarded according to the calculation result includes:
in response to determining that the calculation results of the plurality of distributed power nodes are the same, and the same calculation result is one, taking the plurality of distributed power nodes as distributed power nodes to be rewarded;
and in response to determining that the calculation results of the plurality of distributed power nodes are the same, the same calculation results are a plurality of, determining the same calculation result with the largest number, and taking the distributed power node corresponding to the same calculation result with the largest number as the distributed power node to be rewarded.
In some embodiments, after the sending the grid-tied power to the distributed power node, the method further comprises:
and determining grid-connected benefits according to the grid-connected electric quantity and the cost electricity price in the preset time period, and sending the grid-connected benefits to the distributed power nodes.
In some embodiments, the grid-tied power of the distributed power node is determined according to the following formula:
wherein, the coinj For rewards earned by distributed power nodes j over a preset period of time, a coiΔt The total amount of rewards sent to each distributed power node by the control node in the preset time period is Q (P) which is the preset maximum grid-connected electric quantity, and Q (P)j ) And the grid-connected power quantity of the distributed power node j.
To achieve the above object, a first aspect of the present invention provides a regulation node based on a blockchain, the regulation node including:
the processing module is used for determining grid-connected electric quantity of the distributed power nodes according to rewards obtained by the distributed power nodes in the blockchain network in a preset time period, total rewards sent to the distributed power nodes by the current regulation and control node in the preset time period and preset maximum grid-connected electric quantity;
and the sending module is used for sending the grid-connected electric quantity to the distributed power nodes so that the distributed power nodes can carry out power grid connection according to the grid-connected electric quantity.
In some embodiments, the regulation node further comprises a publishing module and a receiving module;
the issuing module is used for issuing the computing task in the block chain network;
the receiving module is used for receiving the calculation results of the calculation tasks broadcasted by each distributed power node;
the processing module is further used for determining distributed power nodes to be rewarded according to the calculation result;
the sending module is further configured to send a reward to the distributed power node to be rewarded.
In some embodiments, the processing module is to:
in response to determining that the calculation results of the plurality of distributed power nodes are the same, and the same calculation result is one, taking the plurality of distributed power nodes as distributed power nodes to be rewarded;
and in response to determining that the calculation results of the plurality of distributed power nodes are the same, the same calculation results are a plurality of, determining the same calculation result with the largest number, and taking the distributed power node corresponding to the same calculation result with the largest number as the distributed power node to be rewarded.
In some embodiments, the processing module is further configured to determine a grid-connected benefit according to the grid-connected power and the cost price of electricity within the preset time period;
the sending module is further configured to send the grid-connected benefit to the distributed power node.
In some embodiments, the processing module is configured to determine the grid-tie power of the distributed power node according to the following formula:wherein, the coinj For rewards earned by distributed power nodes j over a preset period of time, a coiΔt The total amount of rewards sent to each distributed power node by the control node in the preset time period is Q (P) which is the preset maximum grid-connected electric quantity, and Q (P)j ) And the grid-connected power quantity of the distributed power node j.
The invention has the following advantages:
according to the block chain-based power grid-connection method provided by the embodiment of the invention, the grid-connection electric quantity of the distributed power nodes is determined according to the rewards obtained by the distributed power nodes in the block chain network in the preset time period, the total rewards generated by the regulating nodes to the distributed power nodes in the preset time period and the preset maximum grid-connection electric quantity, the electric quantity can be distributed according to the actual condition of each distributed power node, the rewards obtained by the distributed power nodes in the preset time period can reflect the grid-connection capacity of the distributed power nodes, so that the normal power supply of the power nodes can be ensured, the condition of shortage or waste of the power supplied by the power nodes can not occur, the grid-connection efficiency of each distributed power node can be improved to the greatest extent so as to improve the subsequent grid-connection income of each distributed power node, grid-connection of each distributed power node is determined respectively so that each distributed power node can be connected according to the grid-connection electric quantity determined by the regulating nodes respectively, the grid-connection electric quantity is not required to be concentrated together, and the grid-connection is performed simultaneously according to a unified rule, and the operation is simpler.
Detailed Description
The following describes specific embodiments of the present invention in detail with reference to the drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the invention, are not intended to limit the invention.
The embodiment of the invention provides a block chain-based power grid-connected method which can be applied to a regulation node, as shown in fig. 1, and comprises the following steps:
and step 11, determining grid-connected electric quantity of the distributed power nodes according to rewards obtained by the distributed power nodes in the blockchain network in a preset time period, total rewards sent to each distributed power node by the current regulation and control node in the preset time period and preset maximum grid-connected electric quantity.
The preset maximum grid-connected electric quantity can be the sum of grid-connected electric quantities which can be provided by all distributed power nodes in the blockchain network.
In the embodiment of the invention, the power local area network in the power supply network mainly comprises a plurality of large distributed power nodes. The regulation node and the large distributed power nodes form a blockchain network at the same time. The regulation nodes are responsible for coordination control of distributed power node grid connection, and safety and reliability of a power system are guaranteed. The regulation and control node is used as a central node in the blockchain network, the distribution right of the blockchain is exclusively shared, the calculation task of a new block can be distributed, and each distributed power node in an idle state in the blockchain network can obtain rewards from the regulation and control node by feeding back the calculation result of the calculation task.
And step 12, the grid-connected electric quantity is sent to the distributed power nodes, so that the distributed power nodes can carry out power grid connection according to the grid-connected electric quantity.
After the regulation node sends the grid-connected electric quantity to the distributed power node, the distributed power node performs power grid connection according to the grid-connected electric quantity determined by the regulation node.
As can be seen from the foregoing steps 11 to 12, in the blockchain-based power grid-connection method provided by the embodiment of the present invention, according to the rewards obtained by the distributed power nodes in the blockchain network in the preset time period, the rewards total amount of the rewards sent by the present regulation node to each distributed power node in the preset time period, and the preset maximum grid-connection power, the grid-connection power of the distributed power nodes is determined, and the power can be distributed according to the actual situation of each distributed power node, and the rewards obtained by the distributed power nodes in the preset time period can embody the grid-connection capability of the distributed power nodes, so that the normal power supply of the power nodes can be ensured, the grid-connection efficiency of each distributed power node can be improved to the greatest extent so as to improve the grid-connection income that each distributed power node can obtain later, and the power of each distributed power node can be respectively determined without the power according to the regulation node, and the grid-connection power can be uniformly performed according to the grid-connection power determined by the regulation node, and the grid-connection operation is simple.
In some embodiments, as shown in fig. 2, the method may further comprise the steps of:
step 21, issuing a computing task in the blockchain network.
The regulation node can issue the calculation task of the new block in the block chain network at regular time.
And step 22, receiving the calculation result of the calculation task broadcasted by each distributed power node.
After the distributed power nodes in the idle state in the block chain network receive the calculation tasks issued by the regulation nodes, the calculation tasks can be completed to obtain calculation results, and the calculation results of the nodes are broadcast to the block chain network. The regulation nodes in the blockchain network can receive the calculation results broadcast by the distributed power nodes.
And step 23, determining the distributed power nodes to be rewarded according to the calculation result, and sending rewards to the distributed power nodes to be rewarded.
The regulation and control node can determine distributed power nodes capable of obtaining rewards according to the calculation result of each distributed power node, and then send corresponding rewards to the distributed power nodes.
In the embodiment of the invention, the calculation task can be the solution of the optimal scheduling plan, the scheduling plan can be the sequence of carrying out power grid connection for each distributed power node, and an optimal scheduling plan can be determined from the calculation results obtained by respectively solving each distributed power node, so that after grid-connected electric quantity is sent to the distributed power nodes, each distributed power node can carry out power grid connection according to the sequence in the optimal scheduling plan, thereby avoiding all the distributed power nodes from carrying out power grid connection at the same time and simplifying the operation complexity of power grid connection.
It should be noted that the computing task may be another type of computing task, which is not strictly limited by the present invention.
In some embodiments, the determining the distributed power node to be rewarded according to the calculation result (i.e. step 23) may include:
in response to determining that the calculation results of the plurality of distributed power nodes are the same, and the same calculation result is one, taking the plurality of distributed power nodes as distributed power nodes to be rewarded;
and in response to determining that the calculation results of the plurality of distributed power nodes are the same, the same calculation results are a plurality of, determining the same calculation result with the largest number, and taking the distributed power node corresponding to the same calculation result with the largest number as the distributed power node to be rewarded.
After each distributed power node broadcasts the calculation result of the node to the block chain network, the regulation and control node can verify the accuracy of each calculation result through a consensus mechanism, and the calculation result with the largest frequency is taken as the accurate calculation result.
For example, there are 5 distributed power nodes in the blockchain network, namely node 1, node 2, node 3, node 4 and node 5, and if the calculation results of node 1 and node 2 are all a, but the calculation results of node 3, node 4 and node 5 are respectively B, C and D, and the same calculation result is only a, the calculation result a of node 1 and node 2 can be taken as an accurate calculation result, and the calculation results of node 1 and node 2 can be taken as the distributed power nodes to be rewarded. If the calculation results of the node 1, the node 2 and the node 3 are all a, but the calculation results of the node 4 and the node 5 are all B, at this time, the same calculation results are a and B, but the number of a is the largest and is 3, the calculation results a of the node 1, the node 2 and the node 3 can be used as accurate calculation results, and the node 1, the node 2 and the node 3 can be used as distributed power nodes to be rewarded.
In some embodiments, as shown in fig. 3, after the grid-tied power is sent to the distributed power nodes (i.e., step 12), the method may further include the steps of:
and step 13, determining grid-connected benefits according to the grid-connected electric quantity and the cost electricity price in a preset time period, and sending the grid-connected benefits to the distributed power nodes.
Assuming that the update interval of the electricity required in the market is Δt, the preset time period may be Ti ~Ti The control node can control the grid-connected electric quantity Q (P) of the distributed power node j according to +Deltatj ) T is as followsi ~Ti Cost price of electricity beta over a + deltat period determines grid-tie revenue sigma (P) for distributed power node jj ) Specifically, the method can be performed according to the formula σ (Pj )=βQ(Pj ) And (5) determining.
In some embodiments, the determining the grid-connected power of the distributed power node according to the rewards obtained by the distributed power node in the blockchain network in the preset time period, the total number of rewards sent by the current regulation node to each distributed power node in the preset time period, and the preset maximum grid-connected power (i.e. step 11) may include:
and determining the grid-connected electric quantity of the distributed power node according to the following formula:wherein, the coinj For rewards earned by distributed power nodes j over a preset period of time, a coiΔt For the present control node in a preset time period Ti ~Ti The total number of rewards sent to each distributed power node in +delta t, Q (P) is the preset maximum grid-connected electric quantity, and Q (P)j ) And the grid-connected power quantity of the distributed power node j.
In the embodiment of the invention, each distributed power node can upload grid-connected information to a newly generated empty block in the blockchain network according to a preset period, and link the block chain to the longest blockchain. The grid-connected information can comprise grid-connected electric quantity, grid-connected income, current time and the like of the distributed power nodes in the period. Finally, the newly generated empty block will include a block header and a block body, the block header including the version number of the current block, the information of the previous block, the timestamp, the Merkle (Merkle) root, and the power interaction capacity (i.e., the sum of the actual grid-connected power of each distributed power node) in the present period, and the block body will include the transaction information in the smart contract.
Based on the same technical concept, the embodiment of the invention further provides a regulating node based on the blockchain, as shown in fig. 4, the regulating node may include:
the processing module 101 is configured to determine grid-connected power of the distributed power nodes according to rewards obtained by the distributed power nodes in the blockchain network in a preset time period, total number of rewards sent to each distributed power node by the current regulation node in the preset time period, and a preset maximum grid-connected power.
The sending module 102 is configured to send the grid-connected power to the distributed power node, so that the distributed power node performs power grid connection according to the grid-connected power.
In some embodiments, as shown in fig. 5, the regulation node may further include a publishing module 103 and a receiving module 104.
The publishing module 103 is used to publish computing tasks in the blockchain network.
The receiving module 104 is configured to receive a calculation result of a calculation task broadcasted by each distributed power node.
The processing module 101 is further configured to determine a distributed power node to be rewarded according to the calculation result.
The sending module 102 is further configured to send out rewards to distributed power nodes to be rewarded.
In some embodiments, the processing module 101 is to:
and in response to determining that the calculation results of the plurality of distributed power nodes are the same and the same calculation result is one, taking the plurality of distributed power nodes as the distributed power nodes to be rewarded.
And in response to determining that the calculation results of the plurality of distributed power nodes are the same, the same calculation results are a plurality of, determining the same calculation result with the largest number, and taking the distributed power node corresponding to the same calculation result with the largest number as the distributed power node to be rewarded.
In some embodiments, the processing module 101 is further configured to determine the grid-connected benefit according to the grid-connected power and the cost price of electricity within the preset time period.
The sending module 102 is further configured to send grid-connected benefits to the distributed power nodes.
In some embodiments, the processing module 101 is configured to determine the grid-tied power of the distributed power node according to the following formula:wherein, the coinj For rewards earned by distributed power nodes j over a preset period of time, a coiΔt The total amount of rewards sent to each distributed power node by the control node in a preset time period is Q (P) which is the preset maximum grid-connected electric quantity, and Q (P)j ) And the grid-connected power quantity of the distributed power node j.
It is to be understood that the above embodiments are merely illustrative of the application of the principles of the present invention, but not in limitation thereof. Various modifications and improvements may be made by those skilled in the art without departing from the spirit and substance of the invention, and are also considered to be within the scope of the invention.