CN111626857A - Revenue issuing method and device, electronic equipment and computer readable storage medium - Google Patents

Revenue issuing method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN111626857A
CN111626857A CN202010470334.0A CN202010470334A CN111626857A CN 111626857 A CN111626857 A CN 111626857A CN 202010470334 A CN202010470334 A CN 202010470334A CN 111626857 A CN111626857 A CN 111626857A
Authority
CN
China
Prior art keywords
node
target data
data storage
client node
storage node
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.)
Pending
Application number
CN202010470334.0A
Other languages
Chinese (zh)
Inventor
熊潇
胡伟
洪蜀宁
刘俊杰
黄发培
雷刚
余昌龙
邹浩
李诗寰
彭聪
钱程
尹涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202010470334.0A priority Critical patent/CN111626857A/en
Publication of CN111626857A publication Critical patent/CN111626857A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Mathematical Physics (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Fuzzy Systems (AREA)
  • Technology Law (AREA)
  • Probability & Statistics with Applications (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application provides a revenue issuing method and device, electronic equipment and a computer readable storage medium. The method comprises the following steps: when receiving a query request for target data sent by a client node in a block chain, obtaining a benefit corresponding to the request from pre-supporting data in an account corresponding to the client node, and sending the query request to a data storage node storing the target data; receiving target data returned by the data storage node, sending an acquisition notice to the client node, and returning the target data to the client node when receiving an acquisition request for the target data sent by the client node; and when receiving a timeout processing request sent by the data storage node, issuing the benefit to the data storage node based on a preset timeout processing rule. The scheme provided by the embodiment of the application can ensure that the data node obtains the income, ensures the fairness of the transaction and is beneficial to the normal operation of the transaction.

Description

Revenue issuing method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of block chain technology, and in particular, to a revenue issuing method, apparatus, electronic device, and computer-readable storage medium.
Background
The block chain (Blockchain) is a serial transaction record (also called a block) which is connected in series and protects contents by means of a cryptography technology, and is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like.
Currently, when data is requested from a blockchain node on a blockchain, the following scenario exists: the client node requests data from the data storage node, the data storage node returns the data to the client node when receiving the data request, and the client node issues revenue to the data storage node after confirming that the requested data is received. In this scenario, if the client node does not receive data within a period of time, the request is considered to be timed out and a timeout exception is taken, and no revenue is issued to the data storage node. If the client node receives the data returned by the data node after the data request is subjected to the timeout exception handling, the client node cannot issue the profit to the data storage node any more, so that the data storage node feeds back the request data but does not obtain the due profit, the fairness of the transaction is influenced, and the normal operation of the transaction is not facilitated.
Disclosure of Invention
The present application aims to solve at least one of the above technical drawbacks. The technical scheme adopted by the application is as follows:
in a first aspect, an embodiment of the present application provides a revenue issuing method, including:
when receiving a query request for target data sent by a client node in a block chain, obtaining a benefit corresponding to the request from pre-supporting data in an account corresponding to the client node, and sending the query request to a data storage node storing the target data;
receiving target data returned by the data storage node, sending an acquisition notice to the client node, and returning the target data to the client node when receiving an acquisition request for the target data sent by the client node;
and when receiving a timeout processing request sent by the data storage node, issuing the benefit to the data storage node based on a preset timeout processing rule.
Optionally, the issuing of the benefit to the data storage node based on the predetermined timeout processing rule includes:
determining whether the client node sends payment confirmation information after receiving the target data;
if the payment information is sent, the income is sent to the data storage node based on the time when the payment information is sent out by the client node and the current time;
and if not, determining whether the client node receives the target data, and when the client node has received the target data, issuing the benefit to the data storage node based on the time when the client node receives the target data and the current time.
Optionally, the issuing of the benefit to the data storage node based on the time when the client node issues the payment confirmation information and the current time includes:
and if the difference value between the time of sending the payment confirmation information by the client node and the current time exceeds a first time threshold value, the income is issued to the corresponding account of the data storage node.
Optionally, the issuing of the benefit to the data storage node based on the time when the client node receives the target data and the current time includes:
and if the difference value between the time when the client node receives the target data and the current time exceeds a second time threshold value, the income is issued to the corresponding account of the data storage node.
Optionally, the method further includes:
and updating the payment state of the query request after the income is issued to the corresponding account of the data storage node.
In a second aspect, an embodiment of the present application provides another revenue generating method, including:
when receiving a query request of target data sent by an intelligent contract node in a block chain, returning the target data to the intelligent contract node;
and if the current condition is detected to meet the overtime processing triggering condition, sending an overtime processing request to the intelligent contract node so that the intelligent contract node issues the income to the data storage node based on a preset overtime processing rule.
Optionally, the timeout processing trigger condition includes:
and within the preset time length after the target data is returned to the intelligent contract node, the query request is not paid.
In a third aspect, an embodiment of the present application provides a revenue issuing apparatus, including:
the query request processing module is used for obtaining benefits corresponding to the request from the pre-backed data in the account corresponding to the client node when receiving a query request for target data sent by the client node in the block chain, and sending the query request to the data storage node storing the target data;
the target data forwarding module is used for receiving the target data returned by the data storage node, sending an acquisition notice to the client node and returning the target data to the client node when receiving an acquisition request for the target data sent by the client node;
and the profit issuing module is used for issuing profits to the data storage node based on a preset timeout processing rule when receiving the timeout processing request sent by the data storage node.
Optionally, the revenue issuing module issues the revenue to the data storage node based on a predetermined timeout processing rule, and is specifically configured to:
determining whether the client node sends payment confirmation information after receiving the target data;
if the payment information is sent, the income is sent to the data storage node based on the time when the payment information is sent out by the client node and the current time;
and if not, determining whether the client node receives the target data, and when the client node has received the target data, issuing the benefit to the data storage node based on the time when the client node receives the target data and the current time.
Optionally, the revenue issuing module is specifically configured to, when issuing the revenue to the data storage node based on the time when the client node issues the payment confirmation information and the current time, perform:
and if the difference value between the time of sending the payment confirmation information by the client node and the current time exceeds a first time threshold value, the income is issued to the corresponding account of the data storage node.
Optionally, the revenue issuing module is specifically configured to, when issuing the revenue to the data storage node based on the time when the client node receives the target data and the current time, perform:
and if the difference value between the time when the client node receives the target data and the current time exceeds a second time threshold value, the income is issued to the corresponding account of the data storage node.
Optionally, the apparatus further comprises:
and the payment state updating module is used for updating the payment state of the query request after the income is issued to the corresponding account of the data storage node.
In a fourth aspect, an embodiment of the present application provides a revenue generating apparatus, including:
the target data return module is used for returning target data to the intelligent contract node when receiving a query request of the target data sent by the intelligent contract node in the block chain;
and the overtime processing request sending module is used for sending an overtime processing request to the intelligent contract node when detecting that the current condition meets the overtime processing triggering condition so that the intelligent contract node issues the income of the data storage node based on a preset overtime processing rule.
Optionally, the timeout processing trigger condition includes:
and within the preset time length after the target data is returned to the intelligent contract node, the query request is not paid.
In a fifth aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory;
a memory for storing operating instructions;
a processor configured to execute the revenue generating method as shown in any of the embodiments of the first aspect of the present application by calling the operation instruction.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the revenue generating method shown in any implementation manner of the first aspect of the present application.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
according to the scheme provided by the embodiment of the application, when receiving a query request for target data sent by a client node in a block chain, an intelligent contract node acquires benefits corresponding to the request from pre-supporting data in an account corresponding to the client node and sends the query request to a data storage node storing the target data; the intelligent contract receives target data returned by the data storage node, sends an acquisition notice to the client node, and returns the target data to the client node when receiving an acquisition request for the target data sent by the client node; and when receiving the overtime processing request sent by the data storage node, the intelligent contract node issues the benefit to the data storage node based on the preset overtime processing rule. Based on the scheme, benefits can be pre-paid by the intelligent contract nodes, and benefits are issued to the data storage nodes based on the overtime processing rules when overtime processing is carried out, so that the data nodes can obtain the benefits, the fairness of transaction is guaranteed, and the normal operation of transaction is facilitated.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic flow chart of a revenue issuing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart illustrating another revenue generation method according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a revenue generating apparatus according to an embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of another revenue generating apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 shows a flowchart of a revenue issuing method provided by an embodiment of the present application, where the method is applied to an intelligent contract node in a block chain, and as shown in fig. 1, the method mainly includes:
step S110, when receiving a query request for target data sent by a client node in a block chain, obtaining benefits corresponding to the request from pre-supporting data in an account corresponding to the client node, and sending the query request to a data storage node storing the target data;
step S120, receiving the target data returned by the data storage node, sending an acquisition notice to the client node, and returning the target data to the client node when receiving an acquisition request for the target data sent by the client node;
and S130, when a timeout processing request sent by the data storage node is received, issuing the benefit to the data storage node based on a preset timeout processing rule.
In the embodiment of the application, the target data is stored in the data storage node. When a user needs to inquire the target data from the block chain, a query request for the target data can be sent to a corresponding client terminal node through the terminal equipment.
In the embodiment of the application, the intelligent contract node is a node which is maintained with the intelligent block chain contract, and the intelligent contract can agree on the processing mode of the data query request, so that the automatic processing of the data query request is realized.
In the embodiment of the present application, the benefit may be, for example, points, virtual currency, and the like.
In the embodiment of the application, the client-side node sends a query request for target data to the intelligent contract node of the block chain. The intelligent contract node can forward the income which is obtained by the pre-supporting data storage node in the account corresponding to the client node to the data storage node, the data storage node returns target data to the intelligent contract node, the intelligent contract node sends an acquisition notice to the client node after receiving the target data, the client node sends an acquisition request of the target data to the intelligent contract node after receiving the acquisition notice, and the intelligent contract node sends the target data to the client node. The client node may send the target data to a corresponding terminal device, so that the user may query the target data.
In the embodiment of the application, after the data storage node sends the target data, when it is detected that the current condition meets the overtime processing triggering condition, the data storage node sends the overtime processing request to the intelligent contract node, and the intelligent contract node issues the benefit to the data storage node according to the preset overtime processing rule. The intelligent contract node pre-supports the income due to the data storage node in advance, so that the income can be issued to the data storage node based on the overtime processing rule when overtime processing is carried out, and the income due to the data node can be guaranteed.
According to the method provided by the embodiment of the application, when an intelligent contract node receives a query request for target data sent by a client node in a block chain, earnings corresponding to the request are acquired from pre-supporting data in an account corresponding to the client node, and the query request is sent to a data storage node storing the target data; the intelligent contract receives target data returned by the data storage node, sends an acquisition notice to the client node, and returns the target data to the client node when receiving an acquisition request for the target data sent by the client node; and when receiving the overtime processing request sent by the data storage node, the intelligent contract node issues the benefit to the data storage node based on the preset overtime processing rule. Based on the scheme, benefits can be pre-paid by the intelligent contract nodes, and benefits are issued to the data storage nodes based on the overtime processing rules when overtime processing is carried out, so that the data nodes can obtain the benefits, the fairness of transaction is guaranteed, and the normal operation of transaction is facilitated.
In an optional manner of the embodiment of the present application, issuing a benefit to a data storage node based on a predetermined timeout processing rule includes:
determining whether the client node sends payment confirmation information after receiving the target data;
if the payment information is sent, the income is sent to the data storage node based on the time when the payment information is sent out by the client node and the current time;
and if not, determining whether the client node receives the target data, and when the client node has received the target data, issuing the benefit to the data storage node based on the time when the client node receives the target data and the current time.
In the embodiment of the application, the intelligent contract node can determine whether the client node sends payment confirmation information after receiving the target data. If the client node has issued a confirmation message, the data storage node may be issued revenue by comparing the time at which the confirmation payment information was issued to the current time. Specifically, a first time threshold may be set, and if the difference between the time for sending the payment confirmation information and the current time does not exceed the first time threshold, it may be considered that the transmission of the payment confirmation information is still within the normal time range, and normal revenue sending may be performed after the payment confirmation information is continuously sent to the intelligent contract node. When the difference value between the time for sending the payment confirmation information and the current time exceeds the first time threshold value, the transmission of the payment confirmation information is considered to exceed the normal time range, and the transmission of the payment confirmation information is determined to have a fault, so that the intelligent contract node directly sends the income to the data storage node without continuously waiting for the payment confirmation information.
If the client node does not issue a confirmation payment message, a determination is made as to whether the client node has received the target data. If the client node does not receive the target data, it may continue to wait for the target data to reach the client node. If the client node receives the target data, revenue may be issued for the data storage node by comparing the time the client node received the target data to the current time. A second time threshold may be set, and if the difference between the time when the client node receives the target data and the current time does not exceed the second time threshold, it may be considered that although the client node does not send the payment confirmation information, the processing of the payment confirmation information is still within the normal processing time range, and the client node may continue to wait for the generation of the payment confirmation information and the sending of the payment confirmation information. When the difference value between the time when the client node receives the target data and the current time exceeds the second time threshold, the client node can be considered to process the payment confirmation information beyond the normal time range and possibly have a fault, and at this time, the client node does not need to continue to send the payment confirmation information, but the intelligent contract node directly sends the income to the data storage node.
In an optional manner of the embodiment of the present application, the method further includes:
and updating the payment state of the query request after the income is issued to the corresponding account of the data storage node.
According to the method and the device for issuing the income of the data storage node, after the income of the data storage node is issued, the payment state of the query request can be updated to be paid.
Fig. 2 is a schematic flow chart of another revenue issuing method provided in the embodiment of the present application, where the method is applied to a data storage node in a block chain, and as shown in fig. 2, the method mainly includes:
step S210: when receiving a query request of target data sent by an intelligent contract node in a block chain, returning the target data to the intelligent contract node;
step S220: and if the current condition is detected to meet the overtime processing triggering condition, sending an overtime processing request to the intelligent contract node so that the intelligent contract node issues the income to the data storage node based on a preset overtime processing rule.
In this embodiment of the application, the data storage node may return target data to the intelligent contract node in response to a query request sent by the intelligent contract node.
In the embodiment of the application, after the data storage node returns the target data, whether the current condition meets the overtime processing triggering condition or not can be detected, and when the current condition meets the overtime processing triggering condition, an overtime processing request is sent to the intelligent contract node, so that the intelligent contract node issues the benefit to the data storage node based on the preset overtime processing rule.
According to the method provided by the embodiment of the application, when a query request of target data sent by an intelligent contract node in a block chain is received, the target data is returned to the intelligent contract node; and if the current condition is detected to meet the overtime processing triggering condition, sending an overtime processing request to the intelligent contract node so that the intelligent contract node issues the income to the data storage node based on a preset overtime processing rule. Based on the scheme, benefits can be pre-paid by the intelligent contract nodes, and benefits are issued to the data storage nodes based on the overtime processing rules when overtime processing is carried out, so that the data nodes can obtain the benefits, the fairness of transaction is guaranteed, and the normal operation of transaction is facilitated.
In an optional manner of this embodiment, the timeout processing triggering condition includes:
and within the preset time length after the target data is returned to the intelligent contract node, the query request is not paid.
In the embodiment of the application, whether to trigger the timeout processing request can be determined based on the payment state of the query request.
Based on the same principle as the method shown in fig. 1, fig. 3 shows a schematic structural diagram of a revenue generating apparatus provided by the embodiment of the present application, and as shown in fig. 3, the revenue generating apparatus 30 may include:
the query request processing module 310 is configured to, when receiving a query request for target data sent by a client node in a blockchain, obtain a benefit corresponding to the request from an account corresponding to the client node, and send the query request to a data storage node in which the target data is stored;
the target data forwarding module 320 is configured to receive target data returned by the data storage node, send an acquisition notification to the client node, and return the target data to the client node when receiving an acquisition request for the target data sent by the client node;
and the profit issuing module 330 is configured to, when receiving the timeout processing request sent by the data storage node, issue the profit for the data storage node based on a predetermined timeout processing rule.
According to the device provided by the embodiment of the application, when receiving a query request for target data sent by a client node in a block chain, an intelligent contract node obtains benefits corresponding to the request from pre-supporting data in an account corresponding to the client node and sends the query request to a data storage node storing the target data; the intelligent contract receives target data returned by the data storage node, sends an acquisition notice to the client node, and returns the target data to the client node when receiving an acquisition request for the target data sent by the client node; and when receiving the overtime processing request sent by the data storage node, the intelligent contract node issues the benefit to the data storage node based on the preset overtime processing rule. Based on the scheme, benefits can be pre-paid by the intelligent contract nodes, and benefits are issued to the data storage nodes based on the overtime processing rules when overtime processing is carried out, so that the data nodes can obtain the benefits, the fairness of transaction is guaranteed, and the normal operation of transaction is facilitated.
Optionally, the revenue issuing module issues the revenue to the data storage node based on a predetermined timeout processing rule, and is specifically configured to:
determining whether the client node sends payment confirmation information after receiving the target data;
if the payment information is sent, the income is sent to the data storage node based on the time when the payment information is sent out by the client node and the current time;
and if not, determining whether the client node receives the target data, and when the client node has received the target data, issuing the benefit to the data storage node based on the time when the client node receives the target data and the current time.
Optionally, the revenue issuing module is specifically configured to, when issuing the revenue to the data storage node based on the time when the client node issues the payment confirmation information and the current time, perform:
and if the difference value between the time of sending the payment confirmation information by the client node and the current time exceeds a first time threshold value, the income is issued to the corresponding account of the data storage node.
Optionally, the revenue issuing module is specifically configured to, when issuing the revenue to the data storage node based on the time when the client node receives the target data and the current time, perform:
and if the difference value between the time when the client node receives the target data and the current time exceeds a second time threshold value, the income is issued to the corresponding account of the data storage node.
Optionally, the apparatus further comprises:
and the payment state updating module is used for updating the payment state of the query request after the income is issued to the corresponding account of the data storage node.
It is to be understood that the above-described modules of the profit issuing apparatus in the present embodiment have functions of realizing the respective steps of the profit issuing method in the embodiment shown in fig. 1. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules can be software and/or hardware, and each module can be implemented independently or by integrating a plurality of modules. For the functional description of each module of the revenue issuing apparatus, reference may be specifically made to the corresponding description of the revenue issuing method in the embodiment shown in fig. 1, and details are not described here again.
Based on the same principle as the method shown in fig. 2, fig. 4 shows a schematic structural diagram of a revenue generating apparatus provided by the embodiment of the present application, and as shown in fig. 4, the revenue generating apparatus 40 may include:
a target data returning module 410, configured to return target data to an intelligent contract node when receiving a query request for the target data sent by the intelligent contract node in the block chain;
and the timeout processing request sending module 420 is configured to send a timeout processing request to the intelligent contract node when it is detected that the current condition meets the timeout processing trigger condition, so that the intelligent contract node issues the benefit to the data storage node based on a predetermined timeout processing rule.
The device provided by the embodiment of the application returns the target data to the intelligent contract node when receiving the query request of the target data sent by the intelligent contract node in the block chain; and if the current condition is detected to meet the overtime processing triggering condition, sending an overtime processing request to the intelligent contract node so that the intelligent contract node issues the income to the data storage node based on a preset overtime processing rule. Based on the scheme, benefits can be pre-paid by the intelligent contract nodes, and benefits are issued to the data storage nodes based on the overtime processing rules when overtime processing is carried out, so that the data nodes can obtain the benefits, the fairness of transaction is guaranteed, and the normal operation of transaction is facilitated.
Optionally, the timeout processing trigger condition includes:
and within the preset time length after the target data is returned to the intelligent contract node, the query request is not paid.
It is to be understood that the above-described modules of the profit issuing apparatus in the present embodiment have functions of realizing the respective steps of the profit issuing method in the embodiment shown in fig. 2. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules can be software and/or hardware, and each module can be implemented independently or by integrating a plurality of modules. For the functional description of each module of the revenue issuing apparatus, reference may be specifically made to the corresponding description of the revenue issuing method in the embodiment shown in fig. 2, and details are not described here again.
The embodiment of the application provides an electronic device, which comprises a processor and a memory;
a memory for storing operating instructions;
and the processor is used for executing the revenue issuing method provided by any embodiment of the application by calling the operation instruction.
As an example, fig. 5 shows a schematic structural diagram of an electronic device to which an embodiment of the present application is applicable, and as shown in fig. 5, the electronic device 2000 includes: a processor 2001 and a memory 2003. Wherein the processor 2001 is coupled to a memory 2003, such as via a bus 2002. Optionally, the electronic device 2000 may also include a transceiver 2004. It should be noted that the transceiver 2004 is not limited to one in practical applications, and the structure of the electronic device 2000 is not limited to the embodiment of the present application.
The processor 2001 is applied to the embodiment of the present application to implement the method shown in the above method embodiment. The transceiver 2004 may include a receiver and a transmitter, and the transceiver 2004 is applied to the embodiments of the present application to implement the functions of the electronic device of the embodiments of the present application to communicate with other devices when executed.
The Processor 2001 may be a CPU (Central Processing Unit), general Processor, DSP (Digital Signal Processor), ASIC (Application specific integrated Circuit), FPGA (Field Programmable Gate Array) or other Programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 2001 may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs and microprocessors, and the like.
Bus 2002 may include a path that conveys information between the aforementioned components. The bus 2002 may be a PCI (Peripheral Component Interconnect) bus, an EISA (extended industry Standard Architecture) bus, or the like. The bus 2002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The Memory 2003 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically erasable programmable Read Only Memory), a CD-ROM (Compact disk Read Only Memory) or other optical disk storage, optical disk storage (including Compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
Optionally, the memory 2003 is used for storing application program code for performing the disclosed aspects, and is controlled in execution by the processor 2001. The processor 2001 is configured to execute application program code stored in the memory 2003 to implement the revenue generation method provided in any of the embodiments of the present application.
The electronic device provided by the embodiment of the application is applicable to any embodiment of the method, and is not described herein again.
Compared with the prior art, when an intelligent contract node receives a query request for target data sent by a client node in a block chain, earnings corresponding to the request are obtained from pre-paid data in an account corresponding to the client node, and the query request is sent to a data storage node stored with the target data; the intelligent contract receives target data returned by the data storage node, sends an acquisition notice to the client node, and returns the target data to the client node when receiving an acquisition request for the target data sent by the client node; and when receiving the overtime processing request sent by the data storage node, the intelligent contract node issues the benefit to the data storage node based on the preset overtime processing rule. Based on the scheme, benefits can be pre-paid by the intelligent contract nodes, and benefits are issued to the data storage nodes based on the overtime processing rules when overtime processing is carried out, so that the data nodes can obtain the benefits, the fairness of transaction is guaranteed, and the normal operation of transaction is facilitated.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the revenue issuing method shown in the above method embodiment.
The computer-readable storage medium provided in the embodiments of the present application is applicable to any of the embodiments of the foregoing method, and is not described herein again.
Compared with the prior art, when an intelligent contract node receives a query request for target data sent by a client node in a block chain, earnings corresponding to a pre-paid data acquisition request are obtained from an account corresponding to the client node, and the query request is sent to a data storage node storing the target data; the intelligent contract receives target data returned by the data storage node, sends an acquisition notice to the client node, and returns the target data to the client node when receiving an acquisition request for the target data sent by the client node; and when receiving the overtime processing request sent by the data storage node, the intelligent contract node issues the benefit to the data storage node based on the preset overtime processing rule. Based on the scheme, benefits can be pre-paid by the intelligent contract nodes, and benefits are issued to the data storage nodes based on the overtime processing rules when overtime processing is carried out, so that the data nodes can obtain the benefits, the fairness of transaction is guaranteed, and the normal operation of transaction is facilitated.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (11)

1. A revenue issuing method is applied to intelligent contract nodes in a block chain, and comprises the following steps:
when receiving a query request for target data sent by a client node in the block chain, pre-paying a benefit corresponding to the data acquisition request from an account corresponding to the client node, and sending the query request to a data storage node storing the target data;
receiving the target data returned by the data storage node, sending an acquisition notice to the client node, and returning the target data to the client node when receiving an acquisition request for the target data sent by the client node;
and when receiving a timeout processing request sent by the data storage node, issuing the revenue to the data storage node based on a preset timeout processing rule.
2. The method of claim 1, wherein said issuing of said revenue to said data storage node based on predetermined timeout processing rules comprises:
determining whether the client node has sent payment confirmation information after receiving the target data;
if the information is sent, the income is sent to the data storage node based on the time when the client node sends the payment confirmation information and the current time;
if not, determining whether the client node receives the target data, and when the client node has received the target data, issuing the revenue to the data storage node based on the time when the client node receives the target data and the current time.
3. The method of claim 2, wherein said issuing the revenue to the data storage node based on the time the client node issued the confirmation payment information and the current time comprises:
and if the difference value between the time of sending the payment confirmation information by the client node and the current time exceeds a first time threshold value, the income is sent to a corresponding account of the data storage node.
4. The method of claim 2, wherein the issuing of the revenue to the data storage node based on the time the target data was received by the client node and the current time comprises:
and if the difference value between the time when the client node receives the target data and the current time exceeds a second time threshold, the income is issued to a corresponding account of the data storage node.
5. The method of claim 3 or 4, further comprising:
and updating the payment state of the query request after the income is issued to the corresponding account of the data storage node.
6. A revenue generating method, applied to a data storage node in a blockchain, the method comprising:
when receiving a query request of target data sent by an intelligent contract node in the block chain, returning the target data to the intelligent contract node;
and if the current condition is detected to meet the overtime processing triggering condition, sending an overtime processing request to the intelligent contract node so that the intelligent contract node issues the income to the data storage node based on a preset overtime processing rule.
7. The method of claim 6, wherein the timeout handling trigger condition comprises:
within a preset time period after the target data is returned to the intelligent contract node, the query request is not paid.
8. A revenue generating apparatus, comprising:
the query request processing module is used for pre-paying the benefits corresponding to the data acquisition request from the account corresponding to the client node when receiving a query request for target data sent by the client node in a block chain, and sending the query request to a data storage node storing the target data;
the target data forwarding module is used for receiving the target data returned by the data storage node, sending an acquisition notice to the client node, and returning the target data to the client node when receiving an acquisition request for the target data sent by the client node;
and the revenue issuing module is used for issuing the revenue to the data storage node based on a preset timeout processing rule when receiving the timeout processing request sent by the data storage node.
9. A revenue generating apparatus, comprising:
the target data return module is used for returning the target data to the intelligent contract node when receiving a query request of the target data sent by the intelligent contract node in the block chain;
and the overtime processing request sending module is used for sending an overtime processing request to the intelligent contract node when detecting that the current condition meets an overtime processing triggering condition, so that the intelligent contract node issues the income to the data storage node based on a preset overtime processing rule.
10. An electronic device comprising a processor and a memory;
the memory is used for storing operation instructions;
the processor is used for executing the method of any one of claims 1-7 by calling the operation instruction.
11. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the method of any one of claims 1-7.
CN202010470334.0A 2020-05-28 2020-05-28 Revenue issuing method and device, electronic equipment and computer readable storage medium Pending CN111626857A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010470334.0A CN111626857A (en) 2020-05-28 2020-05-28 Revenue issuing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010470334.0A CN111626857A (en) 2020-05-28 2020-05-28 Revenue issuing method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111626857A true CN111626857A (en) 2020-09-04

Family

ID=72260841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010470334.0A Pending CN111626857A (en) 2020-05-28 2020-05-28 Revenue issuing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111626857A (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107563846A (en) * 2017-08-10 2018-01-09 深圳市易成自动驾驶技术有限公司 Shared vehicles management method, server, system and computer-readable recording medium
CN108109017A (en) * 2018-01-11 2018-06-01 杭州秘猿科技有限公司 Commodity trading system based on block chain intelligence contract
CN108510412A (en) * 2018-04-04 2018-09-07 广州科创空间科技服务有限公司 Intellectual property transfer management method, electronic equipment and storage medium based on alliance's chain
CN108776929A (en) * 2018-04-02 2018-11-09 成都云创智融科技有限公司 Bill processing method, system based on block chain database and readable storage medium storing program for executing
CN109272388A (en) * 2018-09-25 2019-01-25 杭州复杂美科技有限公司 A kind of purchase method based on block chain, equipment and storage medium
CN109389466A (en) * 2018-09-25 2019-02-26 杭州复杂美科技有限公司 A kind of delivery of cargo method, equipment and storage medium based on block chain
CN109447601A (en) * 2018-10-11 2019-03-08 上海保险交易所股份有限公司 The method of eye-witness's transfer transactions is executed in block chain network
CN109543869A (en) * 2018-11-27 2019-03-29 中链科技有限公司 Hotel reservation settlement method, apparatus and system based on block chain network
CN109636362A (en) * 2018-11-14 2019-04-16 深圳前海达闼云端智能科技有限公司 Virtual asset transaction method and device and block chain network node
CN110111217A (en) * 2019-03-27 2019-08-09 深圳市元征科技股份有限公司 A kind of Destination Management method, apparatus, block chain node device and storage medium
CN110148017A (en) * 2019-04-29 2019-08-20 阿里巴巴集团控股有限公司 Equity distribution method and device, electronic equipment, storage medium based on block chain
CN110288339A (en) * 2019-05-07 2019-09-27 西安电子科技大学 A kind of second-hand mobile phone busines sinformation processing/system and method based on block chain
CN110390597A (en) * 2019-07-31 2019-10-29 中国联合网络通信集团有限公司 A kind of method of commerce and system based on block chain
CN110599182A (en) * 2019-09-27 2019-12-20 腾讯科技(深圳)有限公司 Resource management method and device
CN110766458A (en) * 2019-10-18 2020-02-07 支付宝(杭州)信息技术有限公司 Data processing method and device based on block chain

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107563846A (en) * 2017-08-10 2018-01-09 深圳市易成自动驾驶技术有限公司 Shared vehicles management method, server, system and computer-readable recording medium
CN108109017A (en) * 2018-01-11 2018-06-01 杭州秘猿科技有限公司 Commodity trading system based on block chain intelligence contract
CN108776929A (en) * 2018-04-02 2018-11-09 成都云创智融科技有限公司 Bill processing method, system based on block chain database and readable storage medium storing program for executing
CN108510412A (en) * 2018-04-04 2018-09-07 广州科创空间科技服务有限公司 Intellectual property transfer management method, electronic equipment and storage medium based on alliance's chain
CN109272388A (en) * 2018-09-25 2019-01-25 杭州复杂美科技有限公司 A kind of purchase method based on block chain, equipment and storage medium
CN109389466A (en) * 2018-09-25 2019-02-26 杭州复杂美科技有限公司 A kind of delivery of cargo method, equipment and storage medium based on block chain
CN109447601A (en) * 2018-10-11 2019-03-08 上海保险交易所股份有限公司 The method of eye-witness's transfer transactions is executed in block chain network
CN109636362A (en) * 2018-11-14 2019-04-16 深圳前海达闼云端智能科技有限公司 Virtual asset transaction method and device and block chain network node
CN109543869A (en) * 2018-11-27 2019-03-29 中链科技有限公司 Hotel reservation settlement method, apparatus and system based on block chain network
CN110111217A (en) * 2019-03-27 2019-08-09 深圳市元征科技股份有限公司 A kind of Destination Management method, apparatus, block chain node device and storage medium
CN110148017A (en) * 2019-04-29 2019-08-20 阿里巴巴集团控股有限公司 Equity distribution method and device, electronic equipment, storage medium based on block chain
CN110288339A (en) * 2019-05-07 2019-09-27 西安电子科技大学 A kind of second-hand mobile phone busines sinformation processing/system and method based on block chain
CN110390597A (en) * 2019-07-31 2019-10-29 中国联合网络通信集团有限公司 A kind of method of commerce and system based on block chain
CN110599182A (en) * 2019-09-27 2019-12-20 腾讯科技(深圳)有限公司 Resource management method and device
CN110766458A (en) * 2019-10-18 2020-02-07 支付宝(杭州)信息技术有限公司 Data processing method and device based on block chain

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘星等: "基于区块链的内部模拟市场建设研究与应用", 《电力信息与通信技术》 *
刘虹男: "基于智能合约的分布式电商支付系统的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
宋长燕: "区块链技术与商业银行", 《青海金融》 *

Similar Documents

Publication Publication Date Title
CN111787072A (en) Cross-block-chain interaction method, device, system and electronic equipment
CN111782725A (en) Cross-block-chain interaction method, device, system and electronic equipment
CN112116334B (en) Cross-blockchain third party arbitration performance guarantee system and method thereof
CN112446786A (en) Abnormal transaction processing method and device, electronic equipment and readable storage medium
CN110738479A (en) Order management method and system based on multi-person ordering
CN111163130A (en) Network service system and data transmission method thereof
CN112927075B (en) Processing method and device of cross-chain transaction, electronic equipment and readable storage medium
CN111897662A (en) Offset processing method and device, electronic equipment and computer readable storage medium
CN111666289A (en) Data storage and query method and device, electronic equipment and readable storage medium
CN113760566B (en) Distributed transaction processing method, device, system and storage medium
CN111737300A (en) Service processing method, device, equipment and computer readable storage medium
CN111666541A (en) Copyright purchasing and using method and device, electronic equipment and readable storage medium
CN111897826A (en) Parameter information updating method and device, electronic equipment and readable storage medium
CN113222667A (en) Equity sharing processing method and device
CN110519388B (en) Processing method and device for block chain request, electronic equipment and readable storage medium
CN112182606A (en) Access request processing method and device, electronic equipment and readable storage medium
CN106681948A (en) Logic control method and device of programmable logic device
CN111639129A (en) Transaction processing method and device, electronic equipment and computer-readable storage medium
US11120513B2 (en) Capital chain information traceability method, system, server and readable storage medium
CN111913815A (en) Call request processing method and device, electronic equipment and readable storage medium
CN111626857A (en) Revenue issuing method and device, electronic equipment and computer readable storage medium
CN110909032A (en) Method and device for managing data in block chain
CN115098528B (en) Service processing method, device, electronic equipment and computer readable storage medium
CN112688870B (en) Routing method, routing device and node equipment
CN110585717B (en) Information processing method and device

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
TA01 Transfer of patent application right

Effective date of registration: 20220916

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20200904

RJ01 Rejection of invention patent application after publication