CN113791764B - Method for automatically monitoring residual energy of wave field block chain account and giving alarm - Google Patents
Method for automatically monitoring residual energy of wave field block chain account and giving alarm Download PDFInfo
- Publication number
- CN113791764B CN113791764B CN202111057441.1A CN202111057441A CN113791764B CN 113791764 B CN113791764 B CN 113791764B CN 202111057441 A CN202111057441 A CN 202111057441A CN 113791764 B CN113791764 B CN 113791764B
- Authority
- CN
- China
- Prior art keywords
- energy
- field
- wave field
- residual energy
- energy field
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
- G06F8/315—Object-oriented languages
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/252—Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/42—Syntactic analysis
- G06F8/427—Parsing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
The invention discloses a method for automatically monitoring residual energy of a wave field blockchain account and giving an alarm, which comprises the following steps: constructing a cyclic calling method with an interval of N seconds; an account resource query interface for accessing the wave field in the loop calling method; carrying out data analysis on the query result to obtain a co-acquired energy field a and a used energy field b; subtracting the used energy field b from the co-acquired energy field a to obtain a residual energy field c; dividing the residual energy field c by the co-obtained energy field a to obtain an energy use coefficient d; if the energy use coefficient d is larger than the set threshold, calling a micro-signal public signal interface to push the energy surplus information; if the energy use coefficient d is smaller than the set threshold value, ending the inspection flow, and pushing no message; the invention does not need to manually monitor the residual energy of the wave field in real time.
Description
Technical Field
The invention relates to the technical field of blockchain, in particular to a method for automatically monitoring residual energy of a wave field blockchain account and giving an alarm.
Background
The wavefield (TRON, TRX) is a decentralised blockchain network designed specifically for entertainment and content authoring. Including social media platforms, content platforms, wave fields are intended to allow users to create content data, which may be text, pictures, audio or video, that is shared and transacted after they have been authorized. As with Ethernet, the wavefield has its own smart contracts, dapps and wallets. But unlike ethernet, the goal of the wave field is to create more complex services, such as own trading platform, build a decentralised gaming network for use by developers, etc.
The wavefield smart contract calls consume energy in accounts, and as the number of calls deployed on the wavefield smart contract increases, the energy remaining in one wavefield smart contract account is consumed, at which point the smart contract cannot execute, resulting in a business stop.
The existing mode of checking the wave field account is to manually check the residual energy by using a web version wave field blockchain browser, and determine whether to supplement new energy by judging the residual energy. The problem with this approach is that it requires manual full time-period opening of the view of the wave field blockchain browser, which is very labor-intensive.
Disclosure of Invention
In order to solve the problems in the prior art, the invention aims to provide a method for automatically monitoring the residual energy of a wave field blockchain account and giving an alarm.
In order to achieve the above purpose, the invention adopts the following technical scheme: a method for automatically monitoring wave field blockchain account residual energy and alerting, comprising the steps of:
step 1, constructing a cyclic calling method with an interval of N seconds;
step 2, accessing an account resource query interface of a wave field in the cyclic calling method;
step 3, carrying out data analysis on the query result in the step 2 to obtain a co-acquired energy field a and a used energy field b;
step 4, subtracting the used energy field b from the obtained energy field a to obtain a residual energy field c;
step 5, dividing the residual energy field c by the total acquired energy field a to obtain an energy utilization coefficient d;
step 6, if the energy use coefficient d is larger than the set threshold, calling a WeChat public number interface to push the energy surplus message;
step 7, if the energy use coefficient d is smaller than the set threshold value, ending the inspection flow, and pushing no message;
and 8, returning to the step 2.
As a further improvement of the present invention, in step 1, n=3.
As a further improvement of the present invention, the threshold value is 0.9.
The beneficial effects of the invention are as follows:
the account residual flow can be checked through the web wave field block browser in real time without manual work by polling the wave field account residual energy, when the account residual flow reaches a set threshold value, public number pushing is automatically sent, and after the operation and maintenance personnel receive the pushing, the account residual energy is supplemented.
Drawings
FIG. 1 is a flow chart of an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Examples
As shown in fig. 1, a method for automatically monitoring and alarming the residual energy of a wave field blockchain account, assuming that an existing wave field account TLt2eDf iDR3 tvf6gtkwfsnnuusk 5Fvdr is deployed with an intelligent contract, and the energy in the account is continuously reduced with a constant call, comprising the following steps:
1. a loop call method with 3 seconds (3 seconds is the average out-of-block time of the wave field blockchain) interval is constructed, the java implementation code is as follows, and the checkEnergy () method is called in the loop.
2. The Account resource query interface of the wavefield is accessed in checkEnergy ().
3. And (3) carrying out data analysis on the query result of the last step through a java Gson class library, and analyzing and obtaining the energy field energy limit and the used energy field energy used in total. Data parsing (data parsing is a general method, and the present embodiment will not be described in detail)
int EnergyLimit=0;
int EnergyUsed=0;
int EnergyBalance=0.0;
... The interface returns data parsing assignments to energyimit and energyiused.
4. Subtracting the value of the used energy field from the value of the co-acquired energy field to obtain the remaining energy cEnergyLimit EnergyUsed
EnergyBalance=EnergyLimit-EnergyUsed;
5. The energy usage duty cycle is obtained by dividing energy balance by energy limit.
folat usePercent=EnergyUsed/EnergyLimit;
6. And if the energy surplus message is larger than a set threshold value, such as 0.9, invoking the micro-signal public signal interface to push the energy surplus message.
7. If the energy balance divided by the energy limit is smaller than a set threshold, for example, 0.9, the checking flow is ended, and no message is pushed.
8. Returning to step 2.
The foregoing examples merely illustrate specific embodiments of the invention, which are described in greater detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention.
Claims (3)
1. A method for automatically monitoring wave field blockchain account residual energy and alerting, comprising the steps of:
step 1, constructing a cyclic calling method with an interval of N seconds;
step 2, accessing an account resource query interface of a wave field in the cyclic calling method;
step 3, carrying out data analysis on the query result in the step 2 to obtain a co-acquired energy field a and a used energy field b;
step 4, subtracting the used energy field b from the obtained energy field a to obtain a residual energy field c;
step 5, dividing the residual energy field c by the total acquired energy field a to obtain an energy utilization coefficient d;
step 6, if the energy use coefficient d is larger than the set threshold, calling a WeChat public number interface to push the energy surplus message;
step 7, if the energy use coefficient d is smaller than the set threshold value, ending the inspection flow, and pushing no message;
and 8, returning to the step 2.
2. The method of automatically monitoring wave field blockchain account residual energy and alerting of claim 1, wherein in step 1, N = 3.
3. The method of automatically monitoring wavefield blockchain account residual energy and alerting of claim 1, wherein the threshold is 0.9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111057441.1A CN113791764B (en) | 2021-09-09 | 2021-09-09 | Method for automatically monitoring residual energy of wave field block chain account and giving alarm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111057441.1A CN113791764B (en) | 2021-09-09 | 2021-09-09 | Method for automatically monitoring residual energy of wave field block chain account and giving alarm |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113791764A CN113791764A (en) | 2021-12-14 |
CN113791764B true CN113791764B (en) | 2023-06-16 |
Family
ID=78879787
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111057441.1A Active CN113791764B (en) | 2021-09-09 | 2021-09-09 | Method for automatically monitoring residual energy of wave field block chain account and giving alarm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113791764B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104360387A (en) * | 2014-10-20 | 2015-02-18 | 李晓峰 | Diffracted wave separating and imaging method based on reflected energy prediction |
CN109407530A (en) * | 2018-10-16 | 2019-03-01 | 深圳美特优科技有限公司 | A kind of smart home system based on block chain |
CN110839071A (en) * | 2019-11-05 | 2020-02-25 | 腾讯科技(深圳)有限公司 | Information storage method, device and storage medium based on block chain |
CN111369257A (en) * | 2020-03-06 | 2020-07-03 | 上海佩俪信息科技有限公司 | Method and device for realizing asset withholding on block chain through intelligent contract |
CN111858627A (en) * | 2020-06-24 | 2020-10-30 | 南京信息职业技术学院 | Academic degree and academic calendar query system and method based on block chain |
CN112003920A (en) * | 2020-08-18 | 2020-11-27 | 天津四立科技有限责任公司 | Information sharing system |
CN112418874A (en) * | 2020-06-10 | 2021-02-26 | 上海哔哩哔哩科技有限公司 | Data tracing method and device and computer equipment |
CN112486053A (en) * | 2020-10-20 | 2021-03-12 | 国佳云为(常州)信息科技有限公司 | Industrial park environment monitoring and management system based on block chain |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10944728B2 (en) * | 2017-12-28 | 2021-03-09 | Ethicon Llc | Interactive surgical systems with encrypted communication capabilities |
-
2021
- 2021-09-09 CN CN202111057441.1A patent/CN113791764B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104360387A (en) * | 2014-10-20 | 2015-02-18 | 李晓峰 | Diffracted wave separating and imaging method based on reflected energy prediction |
CN109407530A (en) * | 2018-10-16 | 2019-03-01 | 深圳美特优科技有限公司 | A kind of smart home system based on block chain |
CN110839071A (en) * | 2019-11-05 | 2020-02-25 | 腾讯科技(深圳)有限公司 | Information storage method, device and storage medium based on block chain |
CN111369257A (en) * | 2020-03-06 | 2020-07-03 | 上海佩俪信息科技有限公司 | Method and device for realizing asset withholding on block chain through intelligent contract |
CN112418874A (en) * | 2020-06-10 | 2021-02-26 | 上海哔哩哔哩科技有限公司 | Data tracing method and device and computer equipment |
CN111858627A (en) * | 2020-06-24 | 2020-10-30 | 南京信息职业技术学院 | Academic degree and academic calendar query system and method based on block chain |
CN112003920A (en) * | 2020-08-18 | 2020-11-27 | 天津四立科技有限责任公司 | Information sharing system |
CN112486053A (en) * | 2020-10-20 | 2021-03-12 | 国佳云为(常州)信息科技有限公司 | Industrial park environment monitoring and management system based on block chain |
Non-Patent Citations (3)
Title |
---|
Ahsan Manzoor 等.Scavenger Hunt: Utilization of Blockchain and IoT for a Location-Based Game.《 IEEE Access》.2020,(第8期),第2169-3536页. * |
刘广沛.基于区块链的云数据完整性保护机制.《中国优秀硕士学位论文全文数据库 信息科技辑》.2019,(第2期),I138-203. * |
陈先红 宋发枝.互联网新技术背景下的舆论传播策略.《武汉理工大学学报》.2019,第32卷(第3期),第1-6页. * |
Also Published As
Publication number | Publication date |
---|---|
CN113791764A (en) | 2021-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107809331B (en) | Method and device for identifying abnormal flow | |
CN102143507B (en) | Method and system for monitoring service quality, and analytical method and system therefor | |
CN113590497A (en) | Business service test method and device, electronic equipment and storage medium | |
CN112651619A (en) | Business-oriented wind control method and device | |
CN110457175A (en) | Business data processing method, device, electronic equipment and medium | |
CN106571933A (en) | Service processing method and device | |
CN113791764B (en) | Method for automatically monitoring residual energy of wave field block chain account and giving alarm | |
CN110543783A (en) | Voting system and implementation method, equipment and storage medium thereof | |
CN110598419A (en) | Block chain client vulnerability mining method, device, equipment and storage medium | |
CN111741294A (en) | Performance test method based on smart television cloud platform | |
CN112016285B (en) | Logistics information processing method and processing system | |
CN116860856A (en) | Financial data processing method and device, computer equipment and storage medium | |
CN111340574A (en) | Risk user identification method and device and electronic equipment | |
CN111047362A (en) | Statistical management method and system for use activity of intelligent sound box | |
CN113904828B (en) | Method, apparatus, device, medium and program product for detecting sensitive information of interface | |
CN114390015A (en) | Data pushing system, method and equipment based on object model and storage medium | |
CN113973139A (en) | Message processing method and device | |
CN112637793A (en) | Scene charging method, system, electronic equipment and storage medium based on 5G | |
CN112825165A (en) | Project quality management method and device | |
CN115269879B (en) | Knowledge structure data generation method, data search method and risk warning method | |
CN113110947B (en) | Program call chain generation method, system, electronic device and medium | |
CN116629870A (en) | Data processing method, device, equipment and storage medium based on distributed technology | |
CN115034736A (en) | Service processing method and device, electronic equipment and computer readable medium | |
CN117035540A (en) | Project evaluation method, device, equipment and storage medium | |
CN116680332A (en) | File interface-based data management method, device, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |