CN113791764A - Method for automatically monitoring surplus energy of wave field area block chain account and giving alarm - Google Patents
Method for automatically monitoring surplus energy of wave field area block chain account and giving alarm Download PDFInfo
- Publication number
- CN113791764A CN113791764A CN202111057441.1A CN202111057441A CN113791764A CN 113791764 A CN113791764 A CN 113791764A CN 202111057441 A CN202111057441 A CN 202111057441A CN 113791764 A CN113791764 A CN 113791764A
- Authority
- CN
- China
- Prior art keywords
- energy
- field
- residual
- wave field
- 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.)
- Granted
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 surplus energy of a wave field area block chain account and giving an alarm, which comprises the following steps: constructing a cyclic calling method with the interval of N seconds; accessing an account resource query interface of a wave field in the cyclic calling method; performing data analysis on the query result to obtain a commonly acquired energy field a and a used energy field b; subtracting the used energy field b from the co-acquisition energy field a to obtain a residual energy field c; dividing the residual energy field c by the co-acquisition energy field a to obtain an energy use coefficient d; if the energy use coefficient d is larger than the set threshold, calling a WeChat public number interface to push an attention energy residual message; if the energy use coefficient d is smaller than the set threshold, the current checking process is ended, and no message is pushed; 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 block chains, in particular to a method for automatically monitoring residual energy of a wave field block chain account and giving an alarm.
Background
The wavefield (TRON, TRX) is a decentralized blockchain network designed for entertainment and content creation. Including social media platforms, content platforms, wavefields are intended to allow users to create content data, which may be text, pictures, audio, or video, that are shared and transacted after their authorization. Like the etherhouses, the wavefield has its own intelligent contracts, Dapps and wallets. But unlike etherhouses, the goal of wavefields is to create more complex services, such as own trading platforms, building decentralized gaming networks for developers to use, etc.
The wave field intelligent contract calling consumes energy in the account, and as the calling times deployed on the wave field intelligent contract are increased, the energy left in one wave field intelligent contract account is exhausted, and at the moment, the intelligent contract cannot be executed, so that the service is stopped.
The existing method for checking the wave field account is to manually use a web version wave field block chain browser to check the residual energy, and determine whether to supplement new energy or not by judging the residual energy. The problem with this approach is that it is labor intensive to look at the remaining energy that requires a manual full-time opening of the wavefield blockchain browser.
Disclosure of Invention
The invention aims to solve the problems in the prior art and provides a method for automatically monitoring the residual energy of a wave field area blockchain account and giving an alarm.
In order to achieve the purpose, the invention adopts the technical scheme that: a method for automatically monitoring surplus energy of a wave field area blockchain account and giving an alarm comprises the following steps:
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 commonly-acquired energy field a and a used energy field b;
step 4, subtracting the used energy field b from the co-obtained energy field a to obtain a residual energy field c;
step 5, dividing the residual energy field c by the co-acquired energy field a to obtain an energy use coefficient d;
step 6, if the energy use coefficient d is larger than a set threshold, calling a WeChat public number interface to push an attention energy residual message;
step 7, if the energy utilization coefficient d is smaller than the set threshold, the current inspection process is ended, and no message is pushed;
and 8, returning to the step 2.
As a further improvement of the present invention, in step 1, N is 3.
As a further improvement of the present invention, the threshold value is 0.9.
The invention has the beneficial effects that:
the account residual energy can be prevented from being checked manually in real time through a web wave field block browser by polling the wave field account residual energy, when the account residual flow reaches a set threshold value, public number push is automatically sent, and after receiving the push, operation and maintenance personnel supplement the account residual energy.
Drawings
FIG. 1 is a block flow diagram 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 remaining energy of a wave field area blockchain account and alarming, assuming that an existing wave field account TLt2eDf4iDR3tHvf6 gtkwfw smnusk 5Fvdr deploys an intelligent contract, and the contract is continuously called, and energy in the account is continuously reduced, includes the following steps:
1. and constructing a loop calling method with the interval of 3 seconds (3 seconds is the average block-out time of the wave field block chain), and calling a checkEnergy () method in a loop as follows by java implementation code.
2. An account resource query interface for the wavefield is accessed in checkEnergy ().
3. And analyzing the data of the query result in the last step through a java Gson class library to obtain the energy field EnergyLimit and the used energy field Energyused in total. Data resolution (data resolution is a general method, this embodiment is not described in detail)
int EnergyLimit=0;
int EnergyUsed=0;
int EnergyBalance=0.0;
...
4. Subtracting the value of the used energy field from the co-acquired energy field to obtain the remaining energy cenergyLimit Energyused
EnergyBalance=EnergyLimit-EnergyUsed;
5. Energy usage ratios were obtained using EnergyBalance divided by EnergyLimit.
folat usePercent=EnergyUsed/EnergyLimit;
6. If the value is larger than a set threshold value, such as 0.9, the micro-communication public signal interface is called to push the attention energy surplus message.
7. If the division of energy balance by energy limit is smaller than a set threshold value, such as 0.9, the current checking process is ended, and no message is pushed.
8. Go back to step 2.
The above-mentioned embodiments only express the specific embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention.
Claims (3)
1. A method for automatically monitoring surplus energy of a wave field area blockchain account and giving an alarm is characterized by comprising the following steps:
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 commonly-acquired energy field a and a used energy field b;
step 4, subtracting the used energy field b from the co-obtained energy field a to obtain a residual energy field c;
step 5, dividing the residual energy field c by the co-acquired energy field a to obtain an energy use coefficient d;
step 6, if the energy use coefficient d is larger than a set threshold, calling a WeChat public number interface to push an attention energy residual message;
step 7, if the energy utilization coefficient d is smaller than the set threshold, the current inspection process is ended, and no message is pushed;
and 8, returning to the step 2.
2. The method for automatically monitoring the residual energy of the wave field area blockchain account and alarming as claimed in claim 1, wherein in step 1, N-3.
3. The method for automatically monitoring and alarming remaining energy of a wave field area blockchain account as claimed in claim 1, wherein the threshold value 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 true CN113791764A (en) | 2021-12-14 |
CN113791764B 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 (9)
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 |
US20190207911A1 (en) * | 2017-12-28 | 2019-07-04 | Ethicon Llc | Interactive surgical systems with encrypted communication capabilities |
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 |
-
2021
- 2021-09-09 CN CN202111057441.1A patent/CN113791764B/en active Active
Patent Citations (9)
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 |
US20190207911A1 (en) * | 2017-12-28 | 2019-07-04 | Ethicon Llc | Interactive surgical systems with encrypted communication capabilities |
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" * |
刘广沛: "基于区块链的云数据完整性保护机制" * |
陈先红 宋发枝: "互联网新技术背景下的舆论传播策略" * |
Also Published As
Publication number | Publication date |
---|---|
CN113791764B (en) | 2023-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104516806B (en) | The testing result methods of exhibiting and system of the power consumption information of mobile terminal | |
CN102143507B (en) | Method and system for monitoring service quality, and analytical method and system therefor | |
CN109409633A (en) | Business monitoring and Warning System | |
CN107977823A (en) | Accident treating method and apparatus | |
CN105446741B (en) | A kind of mobile applications discrimination method compared based on API | |
CN110535928B (en) | Event pushing method for JAVA intelligent contract of block chain | |
CN112346931A (en) | Raspberry pie-based private network service cluster monitoring alarm system, method and medium | |
CN112651619A (en) | Business-oriented wind control method and device | |
CN106155763A (en) | Dispatching method of virtual machine and device | |
CN111049673A (en) | Method and system for counting and monitoring API call in service gateway | |
CN104580649B (en) | A kind of method and system for auditing automatic speech service content | |
CN106571933A (en) | Service processing method and device | |
CN112511696A (en) | System and method for identifying bad content of call center AI engine | |
CN113791764A (en) | Method for automatically monitoring surplus energy of wave field area block chain account and giving alarm | |
CN110825589B (en) | Abnormality detection method and device for micro-service system and electronic equipment | |
CN111741294A (en) | Performance test method based on smart television cloud platform | |
CN111047362A (en) | Statistical management method and system for use activity of intelligent sound box | |
CN111310612A (en) | Behavior supervision method and device | |
Matsuo et al. | Technology to detect levels of stress based on voice information | |
CN113904828B (en) | Method, apparatus, device, medium and program product for detecting sensitive information of interface | |
CN111200583A (en) | Crank call processing method, device, equipment and medium | |
CN114331446A (en) | Method, device, equipment and medium for realizing out-of-chain service of block chain | |
CN111194044B (en) | Dedicated line dial testing method, device, equipment and medium | |
CN112802466A (en) | Artificial intelligence voice interaction service system | |
CN112463167A (en) | Bank account dynamic account notification service system |
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 |