Charging piles are used for charging electric vehicles and are directly accessible to users in an energy internet entrance, while playing an important role in energy consumption. Currently, each enterprise constructs the center of operation and maintenance of their systems independently, along with their respective APP payment programs. This results in high operating costs, poor user experience, and low utilization rate of the pile, which limits the promotion and popularization of electric vehicles. To overcome this limitation, there is a need for a multi-center, fair, and transparent consortium blockchain, which can conform to the application requirements of a unified payment system and accommodate a range of diverse enterprise charging piles. In this paper, the design for a consensus and incentive program for consortium blockchain is presented. First, the application status of blockchain in an energy internet is described. Then, the logical structure and hierarchical model of the consortium blockchain are analyzed. Next, multicycle accounting and limiting the amount of accounting nodes in each round is presented to ensure the overhead of consensus remain constant. Finally, the accounting incentive mechanism and the bidding encouragement strategy based on "electric beans" are designed.