JP7158522B2 - Transaction request processing method, apparatus, device, medium, and program in blockchain - Google Patents

Transaction request processing method, apparatus, device, medium, and program in blockchain Download PDF

Info

Publication number
JP7158522B2
JP7158522B2 JP2021049434A JP2021049434A JP7158522B2 JP 7158522 B2 JP7158522 B2 JP 7158522B2 JP 2021049434 A JP2021049434 A JP 2021049434A JP 2021049434 A JP2021049434 A JP 2021049434A JP 7158522 B2 JP7158522 B2 JP 7158522B2
Authority
JP
Japan
Prior art keywords
transaction request
current
candidate
request set
transaction
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
Application number
JP2021049434A
Other languages
Japanese (ja)
Other versions
JP2021103559A (en
Inventor
ジン,ボ
Original Assignee
バイドゥ オンライン ネットワーク テクノロジー(ペキン) カンパニー リミテッド
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 バイドゥ オンライン ネットワーク テクノロジー(ペキン) カンパニー リミテッド filed Critical バイドゥ オンライン ネットワーク テクノロジー(ペキン) カンパニー リミテッド
Publication of JP2021103559A publication Critical patent/JP2021103559A/en
Application granted granted Critical
Publication of JP7158522B2 publication Critical patent/JP7158522B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/466Transaction processing
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/02Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP]
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3821Electronic credentials
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • 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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • 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
    • G06Q2220/00Business processing using cryptography
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/56Financial cryptography, e.g. electronic payment or e-cash

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Software Systems (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Pure & Applied Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Computational Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Mathematical Physics (AREA)
  • Technology Law (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Databases & Information Systems (AREA)
  • Algebra (AREA)
  • Probability & Statistics with Applications (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)

Description

本願の実施形態は、コンピュータ技術、具体的にはブロックチェーン技術に関するものであり、特に、ブロックチェーン内のトランザクション要求選択方法、装置、デバイス、、媒体、及びプログラムに関する。 TECHNICAL FIELD Embodiments of the present application relate to computer technology, specifically blockchain technology, and more particularly to transaction request selection methods, apparatus, devices, media, and programs in blockchain.

現在、ブロックアウト奨励機構が存在するブロックチェーンネットワークでは、ブロックアウトノードは通常、多数の取引の料金レベルに応じてトランザクションを並べ替え、待処理の取引を選択している。 Currently, in blockchain networks where blockout incentives exist, blockout nodes typically sort transactions according to the fee level of multiple transactions and select transactions for pending processing.

しかし、通常、ブロックアウトノードで処理される取引数は限られており、処理料金に応じて待処理を選択することで、取引間の依存関係が非常にカットされやすく、その後の取引処理でのエラーにつながりやすい。そのため、どのようにブロックアウトノードの奨励収入を保証するとともに、各取引の円滑な実行を確保することは、依然としてブロックチェーン領域の喫緊の課題として残っている。また、ブロックアウトノードについては、いかにブロックアウト効率を高めるかということも無視できない課題である。 However, the number of transactions processed by blockout nodes is usually limited. prone to error. Therefore, how to guarantee the incentive income of blockout nodes and ensure the smooth execution of each transaction remains a pressing issue in the blockchain space. In addition, regarding blockout nodes, how to improve blockout efficiency is also an issue that cannot be ignored.

本願の実施形態は、ブロックチェーン内のトランザクション要求処理方法、装置、デバイス、および媒体を開示しており、ブロック生成過程中にブロックチェーンノードがトランザクション要求を選択する合理性と選択効率を向上させ、且つ、ブロックアウト効率を向上させることができる。 Embodiments of the present application disclose a transaction request processing method, apparatus, device, and medium in a blockchain to improve the rationality and selection efficiency of a blockchain node's selection of transaction requests during the block generation process, In addition, blockout efficiency can be improved.

第1の側面では、本願の実施形態は、ブロックチェーン内のトランザクション要求処理方法を開示しており、当該方法は、
ブロックチェーンネットワーク内で依存関係を有する選択対象トランザクション要求を集約して少なくとも1つのトランザクション要求集合を得るステップと、
前記トランザクション要求集合が属する候補因子間隔を決定するステップであって、前記因子間隔は、前記トランザクション要求集合がブロック生成過程に参加する確率を測定するために使用されるステップと、
前記候補因子間隔から現在の目標因子間隔を選択し、前記現在の目標因子間隔に対応する前記候補トランザクション要求集合から、ブロック生成過程に参加する現在の目標トランザクション要求集合を選択するステップとを含む。
In a first aspect, embodiments of the present application disclose a method of processing transaction requests in a blockchain, the method comprising:
aggregating selected target transaction requests having dependencies in a blockchain network to obtain at least one set of transaction requests;
determining a candidate factor interval to which said transaction request set belongs, said factor interval being used to measure the probability that said transaction request set will participate in a block generation process;
selecting a current target factor interval from the candidate factor intervals and selecting a current target transaction request set to participate in block generation process from the candidate transaction request set corresponding to the current target factor interval.

第二の側面では、本願の実施形態は、ブロックチェーン内のトランザクション要求処理装置をさらに開示しており、当該装置は、
ブロックチェーンネットワーク内で依存関係を有する選択対象トランザクション要求を集約して少なくとも1つのトランザクション要求集合を得るトランザクション要求集合決定モジュールと、
前記トランザクション要求集合が属する候補因子間隔を決定する候補因子間隔決定モジュールであって、前記因子間隔は、前記トランザクション要求集合がブロック生成過程に参加する確率を測定するために使用される候補因子間隔決定モジュールと、
前記候補因子間隔から現在の目標因子間隔を選択し、前記現在の目標因子間隔に対応する前記候補トランザクション要求集合から、ブロック生成過程に参加する現在の目標トランザクション要求集合を選択するトランザクション要求集合選択モジュールとを有する。
第3の側面において、本願の実施形態は、さらに、電子デバイスを開示し、当該電子デバイスは、
少なくとも1つのプロセッサと、
前記少なくとも1つのプロセッサに通信可能に接続されたメモリとを有し、
前記メモリは、前記少なくとも1つのプロセッサによって実行可能な命令を記憶し、前記命令は、前記少なくとも1つのプロセッサが本願のいずれか1つの実施形態に記載のブロックチェーン内のトランザクション要求処理方法を実行することを可能にするように前記少なくとも1つのプロセッサによって実行される。
In a second aspect, embodiments of the present application further disclose an apparatus for processing transaction requests in a blockchain, the apparatus comprising:
a transaction request set determination module that aggregates selected target transaction requests having dependencies in a blockchain network to obtain at least one transaction request set;
A candidate factor interval determination module for determining a candidate factor interval to which the transaction request set belongs, wherein the factor interval is used to measure the probability that the transaction request set participates in a block generation process. a module;
A transaction request set selection module for selecting a current target factor interval from said candidate factor intervals and selecting a current target transaction request set to participate in a block generation process from said candidate transaction request sets corresponding to said current target factor interval. and
In a third aspect, embodiments of the present application further disclose an electronic device comprising:
at least one processor;
a memory communicatively connected to the at least one processor;
The memory stores instructions executable by the at least one processor, the instructions causing the at least one processor to perform the transaction request processing method in a blockchain according to any one of the embodiments herein. performed by the at least one processor to enable

第4の側面において、本願の実施形態は、コンピュータに本願のいずれか1つの実施形態に記載のブロックチェーン内のトランザクション要求処理方法を実行させるためのコンピュータ命令を格納した非瞬時コンピュータ可読記憶媒体を開示している。 In a fourth aspect, embodiments of the present application provide a non-instantaneous computer-readable storage medium storing computer instructions for causing a computer to perform the method of processing transaction requests in a blockchain according to any one of the embodiments of the present application. disclosed.

本願の実施形態の技術案によれば、現在の目標因子間隔を選択し、現在の目標因子間隔に対応する候補トランザクション要求集合から現在の目標トランザクション要求集合を選択するという循環論理に従って、ブロック生成過程に参加する目標トランザクション要求集合は、少なくとも1つの循環選択の後に累積的に決定され、最終的に、累積的に決定された目標トランザクション要求集合内のトランザクション要求を実行することによってブロックが生成され、ここで、目標トランザクション要求集合内のトランザクション要求間には依存関係が存在し、ブロック生成過程におけるブロックチェーンノードによってトランザクション要求を選択する合理性と選択効率を向上させ、且つ、ブロックアウト効率を向上させることができる。
発明の概要の項に記載されていることは、本願の実施形態の主要なまたは重要な特徴を限定することを意図したものではなく、本願の範囲を限定することを意図したものでもないことが理解されるべきである。本願のその他の特徴は、以下の説明を読むことで容易に理解できると思う。
According to the technical solution of the embodiment of the present application, the block generation process according to the circular logic of selecting the current target factor interval and selecting the current target transaction request set from the candidate transaction request set corresponding to the current target factor interval. A target transaction request set participating in is cumulatively determined after at least one circular selection, and finally a block is generated by executing the transaction requests in the cumulatively determined target transaction request set; Here, there is a dependency relationship between the transaction requests in the target transaction request set, which improves the rationality and selection efficiency of transaction request selection by blockchain nodes in the block generation process, and improves the blockout efficiency. be able to.
What is described in the Summary of the Invention section is not intended to limit key or critical features of the embodiments of the present application, nor is it intended to limit the scope of the present application. should be understood. Other features of the present application will be readily understood upon reading the following description.

添付の図面は、本実施形態をより良く理解するために使用され、本願に対する限定を構成するものではない。
本願の実施形態に開示されたブロックチェーン内のトランザクション要求処理方法のフローチャートである。 本願の実施形態に開示された複数のトランザクション要求間の依存関係の模式図である。 本願の実施形態に開示された別のブロックチェーン内でトランザクション要求処理方法のフローチャートである。 本願の実施形態に開示された価格性能比の順序付きグラフおよび候補トランザクション要求集合の順序付きグラフの模式図である。 本願の実施形態に開示されたブロックチェーン内のトランザクション要求処理のアーキテクチャの模式図である。 本願の実施形態に開示された別のブロックチェーン内のトランザクション要求処理方法のフローチャートである。 本願の実施形態に開示されたブロックチェーン内のトランザクション要求処理装置の構造の模式図である。 本願の実施形態に開示された電子デバイスのブロック図である。
The accompanying drawings are used for a better understanding of the embodiments and do not constitute a limitation to the present application.
4 is a flow chart of a transaction request processing method in a blockchain disclosed in embodiments of the present application; 1 is a schematic diagram of dependencies between multiple transaction requests disclosed in embodiments of the present application; FIG. FIG. 4 is a flow chart of a transaction request processing method within another blockchain disclosed in embodiments of the present application; FIG. FIG. 4 is a schematic diagram of an ordered graph of price/performance ratios and an ordered graph of candidate transaction request sets disclosed in embodiments of the present application; 1 is a schematic diagram of the architecture of transaction request processing in a blockchain disclosed in embodiments of the present application; FIG. FIG. 4 is a flow chart of another transaction request processing method in blockchain disclosed in embodiments of the present application; FIG. 1 is a schematic diagram of the structure of a transaction request processor in a blockchain disclosed in an embodiment of the present application; FIG. 1 is a block diagram of an electronic device disclosed in embodiments of the present application; FIG.

以下、図面を参照し、本開示の例示的な実施形態を説明し、理解を容易にするために本開示の実施形態の様々な詳細を含んでいるが、これらは単に例示的なものとみなされるべきである。したがって、当業者は、本開示の範囲および要旨から逸脱することなく、本明細書に記載された実施形態に様々な変更および修正を加えることができることを認識すべきである。同様に、以下の説明では、明瞭で簡潔にするために、既知の機能と構造の説明を省略している。 Exemplary embodiments of the present disclosure are described below with reference to the drawings, and various details of the embodiments of the present disclosure are included for ease of understanding and are considered merely exemplary. Should be. Accordingly, those skilled in the art should appreciate that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, in the following description, descriptions of known functions and constructions are omitted for clarity and brevity.

図1は、本願の実施形態に開示されたブロックチェーン内のトランザクション要求処理方法のフローチャートであり、簿記権(またはブロックアウト権と呼ばれる)を有するブロックチェーンノードが、ブロック生成過程において如何に待処理のトランザクション要求を合理的かつ効率的に選択する場合に適用可能であり、且つ、本願の実施形態に開示された方案は、好ましくは、競合するブロックアウトを有するコンセンサスメカニズムをデプロイするブロックチェーンネットワークに適用可能である。チェーンネットワークにおいて、コンソーシアムチェーンネットワーク、パブリックチェーンネットワークなどが含まれるが、これらに限定されるものではない。本願の実施形態に開示された方法は、ブロックチェーン内のトランザクション要求処理装置によって実行されてもよく、該装置は、ソフトウェアおよび/またはハードウェアで実装されてもよく、ブロックチェーンノード上に統合されてもよく、ブロックチェーンノードは、計算能力を有する任意の電子デバイス上にデプロイされてもよい。 FIG. 1 is a flowchart of a transaction request processing method in a blockchain disclosed in an embodiment of the present application, how a blockchain node with bookkeeping rights (also called blockout rights) waits in the process of block generation. , and the schemes disclosed in the embodiments of the present application are preferably applied to a blockchain network that deploys a consensus mechanism with competing blockouts. Applicable. Chain networks include, but are not limited to, consortium chain networks, public chain networks, etc. The methods disclosed in embodiments of the present application may be performed by a transaction request processor within a blockchain, which may be implemented in software and/or hardware, and integrated on a blockchain node. and blockchain nodes may be deployed on any electronic device with computing power.

図1に示すように、本願の実施形態に開示されたブロックチェーン内のトランザクション要求処理方法は、以下を含んでもよい。 As shown in FIG. 1, the transaction request processing method in the blockchain disclosed in the embodiments of the present application may include the following.

S101では、ブロックチェーンネットワーク内で依存関係を有する選択対象トランザクション要求を集約して少なくとも1つのトランザクション要求集合を得る。 At S101, at least one set of transaction requests is obtained by aggregating selected target transaction requests having dependencies in the blockchain network.

ここで、トランザクション要求間の依存関係とは、ブロックチェーンノードが特定のトランザクション要求を実行する過程で他のトランザクション要求の処理結果に依存する必要がある状況、または他のトランザクション要求を実行する過程で現在のトランザクション要求の処理結果に依存する必要がある状況を指す。選択対象トランザクション要求とは、ブロックチェーンネットワーク内のブロックチェーンノードに選択されない、ブロック生成過程に参加するかどうかを決定していないトランザクション要求を指す。ブロックチェーンネットワーク内の依存関係を有する選択対象トランザクション要求を集約して、各トランザクション要求集合内の少なくとも1つのトランザクション要求が互いに依存関係を有する、少なくとも1つのトランザクション要求集合(またはトランザクション要求シーケンスと呼ぶ)を得る。各トランザクション要求集合に含まれるトランザクション要求の数は状況によって異なる。 Here, the dependency between transaction requests refers to the situation where a blockchain node needs to depend on the processing results of other transaction requests in the process of executing a specific transaction request, or in the process of executing other transaction requests. Refers to a situation where it is necessary to rely on the outcome of processing the current transaction request. A selected transaction request refers to a transaction request that has not been selected by a blockchain node in the blockchain network and has not decided whether to participate in the block generation process. At least one transaction request set (or transaction request sequence) in which at least one transaction request in each transaction request set has dependencies on each other, aggregating selected target transaction requests with dependencies in the blockchain network. get The number of transaction requests in each transaction request set depends on the situation.

図2は、例として、複数のトランザクション要求の間の1つの依存関係の模式図を示しており、本願の実施形態に対する特定の制限として解釈されるべきではない。図2に示すように、トランザクション要求Aはトランザクション要求Bに依存し、トランザクション要求Bはトランザクション要求Cに依存し、トランザクション要求A、トランザクション要求B及びトランザクション要求Cは一つのトランザクション要求集合1を形成してもよい。トランザクション要求Dは他のトランザクション要求に依存しない、独立したトランザクション要求であり、トランザクション要求Dは単独で一つのトランザクション要求集合2を形成してもよい。トランザクション要求Eはトランザクション要求Fに依存し、トランザクション要求Fはトランザクション要求Hに依存し、トランザクション要求Gも同様にトランザクション要求Hに依存し、したがって、トランザクション要求E、トランザクション要求F、トランザクション要求H及びトランザクション要求Gは、一つのトランザクション要求集合3を形成することができる。 FIG. 2 shows a schematic diagram of one dependency between multiple transaction requests by way of example and should not be construed as a specific limitation to the embodiments of the present application. As shown in FIG. 2, transaction request A depends on transaction request B, transaction request B depends on transaction request C, and transaction request A, transaction request B, and transaction request C form one transaction request set 1. may Transaction request D is an independent transaction request that does not depend on other transaction requests, and transaction request D may form one transaction request set 2 by itself. Transaction request E depends on transaction request F, transaction request F depends on transaction request H, and transaction request G likewise depends on transaction request H, so that transaction request E, transaction request F, transaction request H, and transaction request Requests G can form one transaction request set 3 .

S102では、トランザクション要求集合が属する候補因子間隔を決定し、その中に、因子間隔は、トランザクション要求集合がブロック生成過程に参加する確率を測定するために使用される。 At S102, determine the candidate factor interval to which the transaction request set belongs, in which the factor interval is used to measure the probability that the transaction request set participates in the block generation process.

本願の実施形態では、複数の候補因子間隔を予め設定でき、それらの候補因子間隔は、例えば、(0,N]、(N,2N]、...、(x・N,(x+1)・N)]のように表現されてもよく、xとNの値は、実際の状況に応じて設定されてもよい。各候補因子間隔の間には上限または下限は重複がなく、且つ、間隔の上限または下限の値が大きいほど、該間隔内のトランザクション要求集合がブロック生成過程に参加するために選択される確率が高いことを示す。そして、各トランザクション要求集合の属性に基づいて、各トランザクション要求集合が属する候補因子間隔を決定する。トランザクション要求集合の属性は、トランザクション要求集合がブロック生成過程に参加するために選択されたかどうかを測定するために使用できる任意の特性情報であってもよく、例えば、トランザクション要求集合の属性は、集合に含まれるトランザクション要求の数、トランザクション要求に対する支払証書情報、トランザクション要求の空間占有量(サイズ)、トランザクション要求の優先度などの因素の1つ以上を含んでいてもよい。例示的には、各トランザクション要求集合のためのインセンティブ因子、すなわちトランザクション要求集合に対する評価値が、トランザクション要求集合の属性に基づいて決定されてもよく、次いで、そのインセンティブ因子に基づいて、各トランザクション要求集合が属する候補因子間隔が決定されてもよい。 In embodiments of the present application, a plurality of candidate factor intervals can be preset, and those candidate factor intervals are, for example, (0, N], (N, 2N], ..., (xN, (x+1)) N)], and the values of x and N can be set according to the actual situation.There is no upper or lower limit overlap between each candidate factor interval, and the interval The larger the value of the upper or lower bound of , the higher the probability that the transaction request set within the interval will be selected to participate in the block generation process, and based on the attributes of each transaction request set, each transaction Determine the candidate factor interval that the request set belongs to.The attribute of the transaction request set can be any characteristic information that can be used to determine whether the transaction request set was selected to participate in the block generation process. For example, the attributes of a transaction request set include one or more of the following factors: number of transaction requests included in the set, payment instrument information for the transaction requests, space footprint (size) of the transaction requests, priority of the transaction requests, etc. Illustratively, an incentive factor for each transaction request set, i.e., an evaluation value for the transaction request set, may be determined based on attributes of the transaction request set, and then based on the incentive factor. can be used to determine the candidate factor interval to which each transaction request set belongs.

一つの考察要素を例にとると、トランザクション要求集合に含まれるトランザクション要求の数が所定の閾値間隔内にある場合、トランザクション要求集合のインセンティブ因子は、より大きい、すなわち、ブロック生成過程に参加するためにブロックチェーンノードによって選択される確率がより大きいと考えることができ、ここで、該閾値間隔は、各トランザクション要求を実行するためのブロックチェーンノードの時間コストとブロックを生成するためのパッケージングの時間コストに基づき決まれることができ、これにより、ブロックチェーンノードが、ブロック生成過程において、選択された各トランザクション要求を実行するための時間コストが妥当であるかどうかの総合的な評価を達成することを可能にする。トランザクション要求集合において、バウチャー閾値を超える支払証書情報を有するトランザクション要求の数と第1の数閾値との間の差が大きい場合には、該トランザクション要求集合のインセンティブ因子が大きいと考えることができ、ここで、トランザクション要求の支払証書情報、または処理料金は、ブロックチェーンノードがそのトランザクション要求を実行した後に得ることができる奨励または収益を表すので、トランザクション要求集合に含まれる支払証書情報が高いトランザクション要求の数が多いほど、収益性の観点からブロックチェーンノードがそのトランザクション要求集合をブロック生成過程に参加するために選択する確率が高くなる。トランザクション要求集合の中で高い優先度に属するトランザクション要求の数と第2の数閾値との差が大きい場合には、該トランザクション要求集合のインセンティブ因子が大きいほど考慮されてもよく、ここで、トランザクション要求の優先度は、トランザクション要求に関与する業務タイプ、生成時間、重要性、業務価値などの要因に応じて、ブロックチェーンシステムによって決定されてもよいし、ブロックチェーンノード自身によって指定されてもよい。本願の実施形態は具体的に限定しない。前記に関与する様々なタイプの閾値は、実用的な応用において適応的に設定することができ、本願の実施形態は特に限定されるものではない。 Taking one consideration factor as an example, if the number of transaction requests included in the transaction request set is within a predetermined threshold interval, the incentive factor of the transaction request set is greater, i.e., to participate in the block generation process. , where the threshold interval is the time cost of the blockchain node to execute each transaction request and the packaging cost of producing blocks. It can be determined based on the time cost, thereby achieving a comprehensive evaluation of whether the time cost for executing each transaction request selected by the blockchain node is reasonable during the block generation process. make it possible. If there is a large difference between the number of transaction requests with payment instrument information exceeding the voucher threshold and the first number threshold in the set of transaction requests, then the set of transaction requests may be considered to have a large incentive factor; Here, the bill of payment information, or processing fee, of a transaction request represents the incentive or profit that a blockchain node can obtain after executing that transaction request, so that the bill of payment information contained in the transaction request set is the highest transaction request. The higher the number of , the higher the probability that a blockchain node will select that set of transaction requests to participate in the block generation process from a profitability standpoint. If the difference between the number of transaction requests belonging to high priority in the transaction request set and the second number threshold is large, the larger the incentive factor of the transaction request set may be considered, wherein the transaction The priority of requests may be determined by the blockchain system or assigned by the blockchain nodes themselves, depending on factors such as transaction type involved in the transaction request, generation time, importance, business value, etc. . Embodiments of the present application are not specifically limited. Various types of thresholds involved in the above can be adaptively set in practical applications, and embodiments of the present application are not particularly limited.

前記説明に基づいて、さらに、トランザクション要求集合のインセンティブ因子は、少なくとも2つの考慮事項に基づいて複合的に決定されてもよい。例示的に、トランザクション要求集合のインセンティブ因子は、トランザクション要求集合中にバウチャー閾値を超える支払証書情報を有するトランザクション要求集合のトランザクション要求の数と第1の数閾値との間の差、及び高い優先度に属するトランザクション要求の数と第2の数閾値との間の差に基づいて決定されてもよい。また、トランザクション要求集合に含まれた支払証書情報の高いトランザクション要求が多く、且つトランザクション要求集合に含まれた高い優先度に属するトランザクション要求が多いほど、該トランザクション要求集合のインセンティブ因子が大きくなる。一般的に、高い優先度に属するトランザクション要求は、より高い支払証書情報にも対応する。 Based on the above discussion, the transaction request set incentive factor may also be determined in a complex manner based on at least two considerations. Illustratively, the incentive factor for the set of transaction requests is the difference between the number of transaction requests in the set of transaction requests that have payment instrument information exceeding the voucher threshold and the first number threshold in the set of transaction requests, and a high priority and a second number threshold. Also, the more transaction requests with high payment instrument information included in the transaction request set and the more transaction requests belonging to the higher priority included in the transaction request set, the greater the incentive factor of the transaction request set. In general, transaction requests belonging to a higher priority also correspond to higher instrument of payment information.

また、例示的に、トランザクション要求集合のインセンティブ因子は、トランザクション要求集合におけるトランザクション要求の支払証書情報および空間占有量に基づいて決定され、これは、例えば、トランザクション要求集合における各トランザクション要求の総支払証書情報、すなわち、各トランザクション要求の支払証書情報の合計を計算する。トランザクション要求集合における各トランザクション要求の総空間占有量、すなわち、各トランザクション要求の空間占有量の合計(sum_size)を計算する。総支払証書情報と総空間占有量の商の値が、トランザクション要求集合のインセンティブ因子として使用される。この場合、該インセンティブ因子は、トランザクション要求集合の価格性能比とも言うことができ、ブロックチェーンノードに、選択された各トランザクション要求の空間占有量と、これらのトランザクション要求を実行することによって得られる収益に基づいてトレードオフを行わせて、ブロックスペースを十分に活用し、収益を可能な限り最大化するように合理化することができ、これは、ブロックチェーンノードが積極的に簿記権を争うための効果的なインセンティブにもなり、ひいては、より効果的かつ合理的なインセンティブ計算モデルがブロックチェーンネットワーク内に存在することを可能にし、ブロックの正常かつタイムリーな生成を保証する。 Also illustratively, an incentive factor for a transaction request set is determined based on the payment instrument information and space occupancy of the transaction requests in the transaction request set, which is, for example, the total payment instrument for each transaction request in the transaction request set. Calculate the sum of the information, ie, the payment instrument information for each transaction request. Compute the total space occupancy of each transaction request in the transaction request set, that is, the sum of the space occupancy of each transaction request (sum_size). The quotient value of total bill of payment information and total space occupancy is used as the incentive factor for transaction request sets. In this case, the incentive factor can also be said to be the price-performance ratio of a set of transaction requests, which provides blockchain nodes with the space occupancy of each selected transaction request and the revenue obtained by executing these transaction requests. It can be rationalized to make the trade-offs based on , to fully utilize the block space and maximize the revenue as much as possible, and this is for blockchain nodes to aggressively vie for bookkeeping rights. It can also be an effective incentive, thus allowing a more effective and rational incentive calculation model to exist in the blockchain network, ensuring the normal and timely generation of blocks.

ブロックチェーンノードが純粋に処理料金のレベルに応じてブロック生成過程に参加するトランザクション要求を選択する場合に、トランザクション要求間の依存関係が保証されないだけでなく、処理料金が高いトランザクション要求の空間占有量が大きくなると、ブロックスペースの制限によりブロックチェーンノードが実行できるトランザクション要求の数が制限されるため、個々のトランザクション要求の処理料金は高くなるものの、ブロックブロックチェーンノードが実行できるトランザクション要求の数が少なく、最終的に得られる奨励や収益が最適値ではない可能性があるため、ブロックチェーンノードによるトランザクション要求の選択は依然として不合理である場合があり、すなわち、収益の観点から、ブロック生成に参加するブロックチェーンノードに対する効果的なインセンティブ効果が得られない。処理料金の量のみに基づいてトランザクション要求を選択するという不合理な問題は、トランザクション要求の支払証書情報および空間占有量を考慮に総合的に入れることによって解決される。 When a blockchain node selects a transaction request to participate in the block generation process purely according to the processing fee level, the dependency relationship between transaction requests is not guaranteed, and the space occupation of transaction requests with high processing fees When , block space limits limit the number of transaction requests that a blockchain node can execute, so the processing fee for each individual transaction request increases, but the number of transaction requests that a blockchain node can execute decreases. , the choice of transaction requests by blockchain nodes may still be unreasonable, because the rewards and profits ultimately obtained may not be optimal, i. No effective incentive effect for blockchain nodes. The absurd problem of selecting transaction requests based solely on the amount of processing charges is resolved by taking into account the transaction request's bill of payment information and space occupancy collectively.

さらに、上記技術案に基づいて、トランザクション要求集合が属する候補因子間隔を決定するステップは、
トランザクション要求集合のインセンティ因子に基づいて、作成された因子間隔の上限と下限をトラバースすることにより、前記トランザクション要求集合が属する候補因子間隔をマッチするステップであって、前記インセンティ因子は、ブロックチェーンノードがトランザクション要求集合内のトランザクション要求を実行することによって得られる奨励を特徴付けるために使用されるか、またはトランザクション要求集合がブロック生成過程に参加する確率を特徴付けるために使用されるステップと、
マッチしない場合、トランザクション要求集合が属する候補因子間隔を再構築するステップとを含む。すなわち、候補因子間隔は、トランザクション要求集合の生成に応じて動的に変化できる。
Further, based on the above technical solution, the step of determining the candidate factor interval to which the transaction request set belongs includes:
matching a candidate factor interval to which said transaction request set belongs by traversing upper and lower bounds of a factor interval created based on an incentive factor of said transaction request set, said incentive factor being a blockchain node is used to characterize the incentive gained by executing transaction requests in the transaction request set or to characterize the probability that the transaction request set participates in the block generation process;
if not, reconstructing the candidate factor interval to which the transaction request set belongs. That is, candidate factor intervals can change dynamically in response to the generation of transaction request sets.

S103では、候補因子間隔から現在の目標因子間隔を選択し、現在の目標因子間隔に対応する候補トランザクション要求集合から、ブロック生成過程に参加する現在の目標トランザクション要求集合を選択する。 At S103, the current target factor interval is selected from the candidate factor intervals, and the current target transaction request set participating in the block generation process is selected from the candidate transaction request set corresponding to the current target factor interval.

トランザクション要求集合が属する候補因子間隔を決定した後、予め設定された間隔選択戦略に基づいて、まず、複数の候補因子間隔から、現在の目標因子間隔を選択でき、例えば間隔の上限値または間隔の下限値が最も大きい候補因子間隔を優先的に選択できる。次に、現在の目標因子間隔に対応する複数の候補トランザクション要求集合の中から、集合選択戦略に基づいて、現在の目標トランザクション要求集合を選択し、例えば、複数の候補トランザクション要求集合の中でトランザクション要求の空間占有量が最も大きい集合を現在の目標トランザクション要求集合として優先的に選択する。ここで、集合選択戦略は、業務処理過程におけるトランザクション要求集合の属性に対する特定のニーズにより決まれてもよく、すなわち、候補トランザクション要求集合に含まれるトランザクション要求の数、トランザクション要求の支払証書情報、トランザクション要求の空間占有量、トランザクション要求の優先度などの因素のいずれかを、現在の業務ニーズに基づいて、現在の目標セットのトランザクション要求の選択因子として使用してもよい。 After determining the candidate factor interval to which the transaction request set belongs, the current target factor interval can first be selected from a plurality of candidate factor intervals based on a preset interval selection strategy, e.g. Candidate factor intervals with the largest lower bounds can be preferentially selected. Next, from among the multiple candidate transaction request sets corresponding to the current target factor interval, select the current target transaction request set based on the set selection strategy, e.g. Preferentially select the set with the largest space footprint of requests as the current target transaction request set. Here, the set selection strategy may be determined by the specific needs for the attributes of the transaction request set in the business process, i.e., the number of transaction requests included in the candidate transaction request set, the transaction request's bill of payment information, the transaction request Any of the factors, such as the space footprint of , the priority of the transaction requests, etc., may be used as selection factors for the current target set of transaction requests based on current business needs.

さらに、ブロック生成過程に参加する現在の目標トランザクション要求集合を選択した後、本願の実施形態に開示された方法は、さらに次の内容を含んでもよい。 Moreover, after selecting the current target transaction request set to participate in the block generation process, the method disclosed in the embodiments of the present application may further include the following.

現在の目標トランザクション要求集合と、現在のブロック生成サイクルにおいて選択された目標トランザクション要求集合との総空間占有量を計算する。 Compute the total space footprint of the current target transaction request set and the target transaction request set selected in the current block generation cycle.

得られた総空間占有量がブロック空間閾値未満である場合には、残りの選択対象トランザクション要求の間の依存関係に基づいて少なくとも1つの新しいトランザクション要求集合を決定し、且つ、新しいトランザクション要求集合に基づいて新しい現在の目標トランザクション要求集合の決定操作を実行し、すなわち、S101~S103の動作を繰り返す。 determining at least one new transaction request set based on dependencies among the remaining transaction requests to be selected, if the resulting total space occupancy is less than the block space threshold; Based on this, the operation of determining a new current target transaction request set is executed, that is, the operations of S101-S103 are repeated.

ここで、ブロック空間閾値は、ブロックチェーンネットワーク内のブロックの空間サイズに関連しており、ブロックの空間サイズの上限を反映するために使用されてもよい。残りの選択対象トランザクション要求は、ブロックチェーンネットワーク内のトランザクション要求であって、現在の目標トランザクション要求集合、及び現在のブロック生成サイクルにおいて選択された目標トランザクション要求集合内のトランザクション要求を除く。 Here, the block space threshold is related to the spatial size of blocks in the blockchain network and may be used to reflect the upper limit of the spatial size of blocks. The remaining selected transaction requests are transaction requests in the blockchain network, excluding the current target transaction request set and the transaction requests in the target transaction request set selected in the current block generation cycle.

目標トランザクション要求集合の少なくとも1つの循環選択を経て、最終的に累積的に決定されたトランザクション要求がブロック生成条件を満たす場合、ブロックチェーンノードは、選択された個々のトランザクション要求を実行し、現在のブロックを生成し、ブロックチェーンに追加することができる。 After going through at least one circular selection of the target transaction request set, if the finally cumulatively determined transaction request satisfies the block generation condition, the blockchain node executes the selected individual transaction request, and the current Blocks can be generated and added to the blockchain.

本願の実施形態の技術案によれば、目標トランザクション要求集合の各循環選択過程において、まず、選択対象トランザクション要求の間の依存関係に従って複数のトランザクション要求集合が得られ、トランザクション要求集合が属する候補因子間隔に従ってトランザクション要求集合が分類され、次に、複数の候補因子間隔の中から現在の目標因子間隔が選択され、且つ、現在の目標因子間隔に対応する候補トランザクション要求集合から現在の目標トランザクション要求集合が選択され、ブロック生成過程に参加する。これは、既存の方案ではトランザクション要求間の依存関係を分割することでブロックチェーンノードがブロック生成過程に参加するトランザクション要求を不合理に選択してしまい、ブロック生成効率に影響を与えるという問題を解決し、ブロックチェーンノードがブロック生成過程においてトランザクション要求を選択する際の合理性と選択効率を向上させ、ブロックアウト効率を向上させる。 According to the technical solution of the embodiment of the present application, in each circular selection process of the target transaction request set, first, a plurality of transaction request sets are obtained according to the dependency relationship between the target transaction requests to be selected, and the candidate factor to which the transaction request set belongs is determined. sorting the transaction request set according to the interval; then selecting a current target factor interval from among a plurality of candidate factor intervals; and selecting the current target transaction request set from the candidate transaction request set corresponding to the current target factor interval. is selected to participate in the block generation process. This solves the problem that the existing scheme divides the dependencies between transaction requests, which causes blockchain nodes to unreasonably select transaction requests to participate in the block generation process, which affects the block generation efficiency. It improves the rationality and selection efficiency of blockchain nodes in selecting transaction requests in the process of block generation, and improves blockout efficiency.

上記の技術案に基づいて、任意に、ブロックチェーンネットワーク内で依存関係を有する選択対象トランザクション要求を集約して、少なくとも1つのトランザクション要求集合を得るステップは、
ブロックチェーンネットワーク内の選択対象トランザクション要求間の依存関係に基づいて、選択対象トランザクション要求間の有向非循環グラフを構築するステップと、
有向非循環グラフを使用して、依存関係を有する選択対象トランザクション要求を集約して、少なくとも1つのトランザクション要求集合を取得するステップとを含む。
The step of optionally aggregating selected target transaction requests with dependencies in the blockchain network to obtain at least one set of transaction requests based on the above technical solution, comprising:
constructing a directed acyclic graph among the selected transaction requests based on the dependencies between the selected transaction requests in the blockchain network;
and aggregating selected transaction requests with dependencies using a directed acyclic graph to obtain at least one set of transaction requests.

具体的には、各選択対象トランザクション要求は、有向非循環グラフのノードとして機能し、選択対象トランザクション要求間の依存関係は、有向非循環グラフの辺として機能してもよい。有向非循環グラフを構築することで、各選択対象トランザクション要求間の依存関係を整然と管理することができ、且つ有向非循環グラフは拡張性が高く、選択対象トランザクション要求の増減に応じてすべてが柔軟に変更することができる。さらに、トランザクション要求集合は、リーフトランザクション要求と、リーフトランザクション要求が依存する各非リーフトランザクション要求とを含み、異なるトランザクション要求集合におけるリーフトランザクション要求は異なる。 Specifically, each selected transaction request may serve as a node of a directed acyclic graph, and dependencies between selected transaction requests may serve as edges of the directed acyclic graph. By constructing a directed acyclic graph, it is possible to manage the dependencies between each selected transaction request in an orderly manner. can be flexibly changed. Further, the transaction request set includes a leaf transaction request and each non-leaf transaction request upon which the leaf transaction request depends, and the leaf transaction requests in different transaction request sets are different.

例1においては、図2に示す複数のトランザクション要求間の依存関係を一例として、以下のような3つのトランザクション要求集合を決定することができる。
トランザクション要求集合1:トランザクション要求A→トランザクション要求B→トランザクション要求C;
トランザクション要求集合2:トランザクション要求D;
トランザクション要求集合3:トランザクション要求E→トランザクション要求F→トランザクション要求H、及びトランザクション要求G→トランザクション要求H。
In Example 1, the following three sets of transaction requests can be determined, using the dependencies between multiple transaction requests shown in FIG. 2 as an example.
Transaction request set 1: transaction request A→transaction request B→transaction request C;
Transaction Request Set 2: Transaction Request D;
Transaction request set 3: transaction request E→transaction request F→transaction request H and transaction request G→transaction request H.

ここで、トランザクション要求集1において、トランザクション要求Aはリーフトランザクション要求であり、トランザクション要求Bおよびトランザクション要求Cはリーフトランザクション要求が依存する非リーフトランザクション要求である。 Here, in transaction request set 1, transaction request A is a leaf transaction request, and transaction request B and transaction request C are non-leaf transaction requests on which the leaf transaction request depends.

トランザクション要求集2では、トランザクション要求Dは独立したトランザクション要求である。
トランザクション要求集合3において、トランザクション要求Eとトランザクション要求Gはリーフトランザクション要求であり、トランザクション要求Fとトランザクション要求Hはリーフトランザクション要求Eが依存する非リーフトランザクション要求であり、トランザクション要求Hはリーフトランザクション要求Gが依存する非リーフトランザクション要求である。
In transaction request set 2, transaction request D is an independent transaction request.
In transaction request set 3, transaction request E and transaction request G are leaf transaction requests, transaction request F and transaction request H are non-leaf transaction requests upon which leaf transaction request E depends, and transaction request H is leaf transaction request G. is a dependent non-leaf transaction request.

例2においては、選択対象トランザクション要求がトランザクションに対応できると仮定すると、複数の取引の間に以下の依存関係が存在するとする:取引2は取引1に依存し、取引3は取引2に依存し、取引4は取引3に依存する。そして、トランザクション要求集合または取引シーケンスは、以下のように表現することができる。 In Example 2, assuming that the selected transaction requests can correspond to transactions, the following dependencies exist among the transactions: Transaction 2 depends on Transaction 1, Transaction 3 depends on Transaction 2, and so on. , transaction 4 depends on transaction 3. Then, a transaction request set or transaction sequence can be expressed as follows.

取引シーケンス1:取引1。
取引シーケンス2:取引2→取引1。
取引シーケンス3:取引3→取引2→取引1。
取引シーケンス4:取引4→取引3→取引2→取引1。
ここで、取引シーケンス1では、取引1は独立した取引である。
Transaction Sequence 1: Transaction 1;
Transaction sequence 2: transaction 2→transaction 1.
Transaction sequence 3: transaction 3→transaction 2→transaction 1.
Transaction sequence 4: transaction 4→transaction 3→transaction 2→transaction 1.
Here, in deal sequence 1, deal 1 is an independent deal.

取引シーケンス2において、取引2はリーフ取引であり、取引1は非リーフ取引(または祖先取引と呼ばれる)である。
取引シーケンス3において、取引3はリーフ取引であり、取引2と取引1は非リーフ取引である。
取引シーケンス4において、取引4はリーフ取引であり、取引3、取引2、取引1は非リーフ取引である。
In deal sequence 2, deal 2 is a leaf deal and deal 1 is a non-leaf deal (also called an ancestor deal).
In trade sequence 3, trade 3 is a leaf trade and trades 2 and 1 are non-leaf trades.
In trade sequence 4, trade 4 is a leaf trade, and trades 3, 2, and 1 are non-leaf trades.

そして、上記の例からも分かるように、複数の選択対象トランザクション要求の間に同一の依存関係が存在する場合には、各トランザクション要求集合には、最初期の依存トランザクション要求(または最も古い祖先トランザクション要求と呼ばれる)が含まれる。例えば、上記の例では、取引シーケンス2-取引シーケンス4の全てに、最も古い祖先取引:取引1が含まれている。 And, as can be seen from the above example, if the same dependency exists among multiple selected transaction requests, each transaction request set will have the earliest dependent transaction request (or the oldest ancestor transaction request). called requests). For example, in the above example, transaction sequence 2-deal sequence 4 all contain the oldest ancestor transaction: transaction1.

現在の目標トランザクション要求集合の選択循環が終了した後、現在の目標トランザクション要求集合に含まれるトランザクション要求を、現在のブロックチェーンネットワーク内の選択対象トランザクション要求から削除し、残りの選択対象トランザクション要求を取得でき、その後、残りの選択対象トランザクション要求間の依存関係に基づいて、有向非循環グラフを再構築し、新たな現在の目標トランザクション要求集合を決定するために使用される。 After the selection cycle of the current target transaction request set ends, the transaction requests included in the current target transaction request set are removed from the selected target transaction requests in the current blockchain network, and the remaining selected target transaction requests are obtained. It can then be used to reconstruct the directed acyclic graph based on the dependencies between the remaining selected transaction requests and determine a new current set of target transaction requests.

図3は、本願の実施形態に開示された別のブロックチェーン内のトランザクション要求処理方法のフローチャートであり、上記の技術案に基づいてさらに最適化され、拡張されており、上記の任意の実施形態の各々と組み合わせてもよい。図3に示すように、該方法は、以下のステップを含む。 FIG. 3 is a flow chart of another intra-blockchain transaction request processing method disclosed in an embodiment of the present application, which is further optimized and extended based on the above technical scheme, and can be used in any of the above embodiments. may be combined with each of As shown in FIG. 3, the method includes the following steps.

S301では、ブロックチェーンネットワーク内で依存関係を有する選択対象トランザクション要求を集約して少なくとも1つのトランザクション要求集合を得る。
S302では、トランザクション要求集合が属する候補因子間隔を決定し、前記因子間隔は、前記トランザクション要求集合がブロック生成過程に参加する確率を測定するために使用される。
At S301, at least one set of transaction requests is obtained by aggregating selected target transaction requests having dependencies in the blockchain network.
At S302, determine the candidate factor interval to which the transaction request set belongs, said factor interval being used to measure the probability that said transaction request set participates in the block generation process.

ここで、トランザクション要求集合におけるトランザクション要求の支払証書情報および空間占有量に基づいてトランザクション要求集合のインセンティブ因子を決定してもよく、その場合、該インセンティブ因子はまた、トランザクション要求集合の価格性能比も呼ばれ、ブロックチェーンノードがトランザクション要求集合を実行することによって得られる奨励を特徴付けるために用いられる。そして、トランザクション要求集合のインセンティ因子に基づいて、作成された因子間隔の上限と下限をトラバースすることにより、トランザクション要求集合が属する候補因子間隔をマッチする。マッチしない場合、トランザクション要求集合が属する候補因子間隔を再構築する。すなわち、候補因子間隔は、トランザクション要求集の生成に応じて動的に変化できる。 Here, an incentive factor for the transaction request set may be determined based on the bill of payment information and space occupancy of the transaction request set in the transaction request set, where the incentive factor also includes the price performance ratio for the transaction request set. Called and used to characterize the rewards a blockchain node gets from executing a set of transaction requests. The candidate factor interval to which the transaction request set belongs is then matched by traversing the upper and lower bounds of the created factor interval based on the transaction request set's incentive factor. If not, reconstruct the candidate factor interval to which the transaction request set belongs. That is, candidate factor intervals can change dynamically as transaction request sets are generated.

S303では、候補因子間隔の間隔値に応じて、現在の因子間隔を選択する。
例えば、現在の因子間隔として、間隔上限値または間隔下限値が最も大きい候補因子間隔を優先的に選択してもよい。
At S303, the current factor interval is selected according to the interval value of the candidate factor interval.
For example, the candidate factor interval with the largest upper interval value or lower interval value may be preferentially selected as the current factor interval.

S304では、現在の因子間隔に対応する候補トランザクション要求集合から、現在の因子間隔に対応する候補トランザクション要求集合による空間占有量に応じて、現在のトランザクション要求集合を選択する。 At S304, the current transaction request set is selected from the candidate transaction request sets corresponding to the current factor interval according to the amount of space occupied by the candidate transaction request sets corresponding to the current factor interval.

具体的には、現在の因子間隔に対応する候補トランザクション要求集合において、候補トランザクション要求集合の空間占有量を並べ替えることにより、並べ替えの結果に基づいて現在のトランザクション要求集合を決定して、例えば、候補トランザクション要求集合の空間占有量に応じて、最大から最小に並べ替え、好ましくは、1位の候補トランザクション要求集合を現在のトランザクション要求集合として用いる。あるいは、現在の因子間隔に対応する候補トランザクション要求集合のうち、空間占有量が空間占有閾値よりも大きい候補トランザクション要求集合を現在のトランザクション要求集合として決定し、空間占有閾値は柔軟に設定されてもよく、例えば、空間占有閾値に基づいて、空間占有量が最も大きい候補トランザクション要求集合を現在のトランザクション要求集合として選択してもよい。 Specifically, by reordering the space occupancy of the candidate transaction request sets in the candidate transaction request set corresponding to the current factor interval, determining the current transaction request set based on the result of the reordering, e.g. , according to the space occupancy of the candidate transaction request sets, sort from largest to smallest, preferably using the first candidate transaction request set as the current transaction request set. Alternatively, among the candidate transaction request sets corresponding to the current factor interval, a candidate transaction request set whose space occupation amount is greater than the space occupation threshold is determined as the current transaction request set, and the space occupation threshold is flexibly set. The candidate transaction request set with the largest space occupancy may be selected as the current transaction request set, for example, based on a space occupancy threshold.

ブロックチェーン上の各間隔の空間サイズは比較的に固定されており、候補トランザクション要求集合の空間占有量に応じて現在のトランザクション要求集合を選択することで、空間占有量が比較的に大きい候補トランザクション要求集合に対する優先的な選択を実現することができ、ブロック空間を最大限に活用することで、ブロック生成過程に参加するトランザクション要求の選択の回数をある程度減らすことができ、さらに、ブロックチェーンノードがトランザクション要求を選択するための時間コスト(計算能力)を節約することができ、これにより、ノードの収益と計算能力の消費をバランスさせることができ、競合するブロックアウトを有するコンセンサスメカニズムをデプロイするブロックチェーンネットワークに対して、ブロックチェーンノードに十分な計算能力を持たせ、簿記権を競い、このために、トランザクション要求を選択する際の計算能力の消費量が大きいので簿記の権利を競うことに失敗しないことを回避できる。さらに、トランザクション要求集合の選択数が減少し、相対的に、累積的に選択されたトランザクション要求の総数を相対的に減少させることができ、その結果、ブロックチェーンノードがブロックを生成するために消費する計算能力も減少させることができる。 The space size of each interval on the blockchain is relatively fixed, and by selecting the current transaction request set according to the space occupancy of the candidate transaction request set, candidate transactions with relatively large space occupancy It can achieve preferential selection for the set of requests, make full use of the block space, can reduce the number of selections of transaction requests participating in the block generation process to some extent, and furthermore, the blockchain node can It can save the time cost (computing power) for selecting transaction requests, this can balance node revenue and computing power consumption, and block deploying a consensus mechanism with competing blockouts. For the chain network, the block chain node has enough computing power to compete for the right of bookkeeping, and for this reason, the consumption of computing power when selecting transaction requests is large, so it fails to compete for the right of bookkeeping. You can avoid not doing it. In addition, the number of selected transaction request sets can be reduced, and the total number of transaction requests cumulatively selected can be relatively reduced, so that blockchain nodes consume to generate blocks. The computational power to do so can also be reduced.

S305では、現在のトランザクション要求集合と、現在のブロック生成サイクルにおいて選択された目標トランザクション要求集合に基づいて、現在のトランザクション要求集合を検証する。
S306では、検証結果に基づいて、現在の目標因子間隔および現在の目標トランザクション要求集合を決定する。
At S305, the current transaction request set is verified based on the current transaction request set and the target transaction request set selected in the current block generation cycle.
At S306, the current target factor interval and current target transaction request set are determined based on the verification results.

具体的には、これまでにブロックチェーンノードによって累積的に選択されたトランザクション要求集合の数またはブロックチェーンノードによって累積的に選択されたトランザクション要求の数が対応する数の閾値を超えるかどうか、またはブロックチェーンノードによって累積的に選択されたトランザクション要求集合の総空間占有量がブロック空間閾値を超えるかどうかなどの所定の検証戦略に基づいて、現在のトランザクション要求集合が検証されてもよい。ここで、ブロック空間閾値は、ブロックチェーンネットワーク内のブロックの空間サイズに関連しており、ブロックの空間サイズの上限を反映するために使用されてもよい。 Specifically, whether the number of transaction request sets cumulatively selected by a blockchain node so far or the number of transaction requests cumulatively selected by a blockchain node exceeds a corresponding number threshold; or The current transaction request set may be verified based on a predetermined verification strategy, such as whether the total space footprint of the transaction request sets cumulatively selected by the blockchain nodes exceeds a block space threshold. Here, the block space threshold is related to the spatial size of blocks in the blockchain network and may be used to reflect the upper limit of the spatial size of blocks.

例示的には、現在のトランザクション要求集合と、現在のブロック生成サイクルにおいて選択された目標トランザクション要求集合に基づいて、現在のトランザクション要求集合を検証するステップは、
現在のトランザクション要求集合と、現在のブロック生成サイクルにおいて選択された目標トランザクション要求集合との総空間占有量を計算するステップと、
総空間占有量とブロック空間閾値との関係に基づいて、現在のトランザクション要求集合を検証するステップとを含む。
Illustratively, verifying the current transaction request set based on the current transaction request set and a target transaction request set selected in the current block generation cycle comprises:
calculating the total space footprint of the current transaction request set and the target transaction request set selected in the current block generation cycle;
and verifying the current set of transaction requests based on the relationship between the total space footprint and the block space threshold.

これまでに、ブロックチェーンノードによって累積的に選択されたトランザクション要求集合の数またはブロックチェーンノードによって累積的に選択されたトランザクション要求の数が対応する数の閾値を超えない場合、またはブロックチェーンノードによって累積的に選択されたトランザクション要求集合の空間占有量の合計がブロック空間閾値を超えない場合などに、検証は合格とみなされ、現在の因子間隔が現在の目標因子間隔として使用され、現在のトランザクション要求集合が現在の目標トランザクション要求集合として使用される。検証に失敗した場合には、ブロック生成条件が成立するまで、現在の目標因子間隔に対応する残りの候補トランザクション要求集合または残りの候補因子間隔に基づいて、現在の目標因子間隔および現在の目標トランザクション要求集合の決定操作を再度実行する必要がある。ここで、現在の因子間隔に対応する残りの候補トランザクション要求集合は、検証に失敗したトランザクション要求集合以外の現在の因子間隔に対応するトランザクション要求集合を含み、残りの候補因子間隔は、現在の因子間隔以外の候補因子間隔を含む。 So far, if the number of transaction request sets cumulatively selected by a blockchain node or the number of transaction requests cumulatively selected by a blockchain node does not exceed the corresponding number threshold, or Validation is considered passed, such as when the total space footprint of the cumulatively selected set of transaction requests does not exceed the block space threshold, the current factor interval is used as the current target factor interval, and the current transaction The request set is used as the current target transaction request set. If the verification fails, the current goal factor interval and the current goal transaction based on the remaining candidate transaction request set corresponding to the current goal factor interval or the remaining candidate factor interval until the block generation condition is met. The request set determination operation needs to be performed again. where the remaining candidate transaction request sets corresponding to the current factor interval include the transaction request sets corresponding to the current factor interval other than the transaction request sets that failed validation, and the remaining candidate factor intervals are the current factor Contains candidate factor intervals other than intervals.

本願の実施形態の技術案によれば、目標トランザクション要求集合の各循環選択の過程において、トランザクション要求集合が属する候補因子間隔の間隔値に従って現在の因子間隔を選択し、且つ、現在の因子間隔に対応する候補トランザクション要求集合から、現在の因子間隔に対応する候補トランザクション要求集合の空間占有量に基づいて現在のトランザクション要求集合を選択した後に、これまでに累積的に選択されたトランザクション要求集合に基づいて現在のトランザクション要求集合を検証することにより、検証結果に基づいて、現在の目標因子間隔と現在の目標トランザクション要求集合を決定する。これは、既存の方案ではトランザクション要求間の依存関係を分割することでブロックチェーンノードがブロック生成過程に参加するトランザクション要求を不合理に選択してしまい、さらにブロック生成効率に影響を与えるという問題を解決し、ブロックチェーンノードがブロック生成過程においてトランザクション要求を選択する際の選択効率を向上させ、毎回の循環選択処理において目標トランザクション要求集合を選択する合理性が確保される。特に、まず、トランザクション要求集合内のトランザクション要求の支払証書情報と空間占有量に基づいて、トランザクション要求集合が属する候補因子間隔を決定し、次に、これまでにブロックチェーンノードによって累積的に選択されているトランザクション要求集合の総空間占有量がブロック空間閾値を超えているかどうかに基づいて、現在に選択されたトランザクション要求集合を検証し、ブロックチェーンノードの収益を十分に考慮した上でブロック空間を十分に利用できる効果を実現できる。 According to the technical solution of the embodiment of the present application, in the process of each circular selection of the target transaction request set, the current factor interval is selected according to the interval value of the candidate factor interval to which the transaction request set belongs; From the corresponding candidate transaction request sets, select the current transaction request set based on the space occupancy of the candidate transaction request sets corresponding to the current factor interval, and then based on the transaction request sets cumulatively selected so far. Determine the current target factor interval and the current target transaction request set based on the verification results by verifying the current transaction request set with This solves the problem that the existing scheme divides the dependencies between transaction requests, which causes blockchain nodes to unreasonably select transaction requests to participate in the block generation process, further affecting the block generation efficiency. The solution is to improve the selection efficiency of the block chain node when selecting transaction requests in the block generation process, and ensure the rationality of selecting the target transaction request set in each round selection process. In particular, first determine the candidate factor interval to which the transaction request set belongs based on the bill of payment information and space occupancy of the transaction requests in the transaction request set, and then determine the candidate factor interval that has been cumulatively selected by the blockchain nodes so far. Verify the currently selected transaction request set based on whether the total space occupancy of the current transaction request set exceeds the block space threshold, and determine the block space after fully considering the blockchain node revenue. A fully exploitable effect can be achieved.

前記技術案に基づいて、好ましくは、検証結果に基づいて、現在の目標因子間隔および現在の目標トランザクション要求集合を決定することを含む。 Determining a current target factor interval and a current target transaction request set based on the technical solution, preferably based on the verification result.

現在のトランザクション要求集合の検証が失敗した場合、現在の因子間隔を現在の目標因子間隔として使用し、現在の因子間隔に対応する残りの候補トランザクション要求集合に基づいて、現在の目標トランザクション要求集合を決定する操作を実行する。ここで、残りの候補トランザクション要求集合は、検証に失敗したトランザクション要求集合以外の現在の因子間隔に対応するトランザクション要求集合を含む。例示的に、残りの候補トランザクション要求集合は、トランザクション要求集合の空間占有量に応じて、最も大きいものから最も小さいものまで、順番に考慮されてもよい。 If verification of the current transaction request set fails, use the current factor interval as the current target factor interval, and determine the current target transaction request set based on the remaining candidate transaction request sets corresponding to the current factor interval. Take action to decide. Here, the remaining candidate transaction request sets include transaction request sets corresponding to the current factor interval other than the transaction request sets that failed validation. Illustratively, the remaining candidate transaction request sets may be considered in order from largest to smallest, depending on the space footprint of the transaction request sets.

さらに、検証結果に基づいて、現在の目標因子間隔および現在の目標トランザクション要求集合を決定するステップはまた、
現在の因子間隔に対応する残りの候補トランザクション要求集合から、現在の目標トランザクション要求集合を決定できないと、残りの候補因子間隔に基づいて現在の目標因子間隔の決定操作を実行し、新たに決定された現在の目標因子間隔に対応する候補トランザクション要求集合に基づいて現在の目標トランザクション要求集合の決定操作を実行するステップを含み、ここで、残りの候補因子間隔が、現在の因子間隔以外の候補因子間隔を含む。例示的に、残りの候補因子間隔は、間隔の上限値又は間隔の下限値が順に減少する順序に従い考えられてもよい。
Further, based on the verification results, determining a current target factor interval and a current target transaction request set also includes:
If the current target transaction request set cannot be determined from the remaining candidate transaction request sets corresponding to the current factor interval, perform the current target factor interval determination operation based on the remaining candidate factor intervals, and performing a determination operation of the current target transaction request set based on the candidate transaction request set corresponding to the current target factor interval obtained from the current target factor interval, wherein the remaining candidate factor intervals are the candidate factors other than the current factor interval Including intervals. Illustratively, the remaining candidate factor intervals may be considered according to an order of decreasing upper interval value or lower interval value.

すなわち、目標トランザクション要求集合の循環的な決定処理において、複数回の選択と検証を経て、現在の目標因子間隔に対応する候補トランザクション要求集合の中から現在の目標トランザクション要求集合を決定することが好ましく、次に、残りの候補因子間隔に対応する候補トランザクション要求集合の中から現在の目標トランザクション要求集合を決定することが考えられ、これにより、ブロックチェーンノードが現在の目標トランザクション要求集合を決定するために複数の選択を通過する必要がある場合でも、高い選択効率を維持できる。また、トランザクション要求集合のインセンティ因子は、ブロックチェーンノードがトランザクション要求集合内のトランザクション要求を実行することによって得られる奨励を特徴付けるために使用することができる例を取ると、間隔の上限値または間隔の下限値が最大の候補因子間隔に対応する候補トランザクション要求集合は、ブロックチェーンノードに比較的大きな収益をもたらし、現在の目標因子間隔、残りの候補因子間隔のような優先順位で現在の目標トランザクション要求集合を選択することができる。これは、ブロックチェーンノードの合理的な収益の最大化を確保でき、収益の損失を最大限に減少できる。 That is, in the cyclic determination process of the target transaction request set, it is preferable to determine the current target transaction request set from among the candidate transaction request sets corresponding to the current target factor interval through multiple rounds of selection and verification. , then it is possible to determine the current target transaction request set among the candidate transaction request sets corresponding to the remaining candidate factor intervals, whereby the blockchain node determines the current target transaction request set High selection efficiency can be maintained even when multiple selection passes are required to Also, the transaction request set incentive factor can be used to characterize the incentive a blockchain node obtains by executing a transaction request within the transaction request set. The set of candidate transaction requests corresponding to the candidate factor interval with the largest lower bound value will bring a relatively large return to the blockchain node, and the current target transaction request in order of priority such as the current target factor interval, the remaining candidate factor intervals Sets can be selected. This can ensure the reasonable profit maximization of blockchain nodes and reduce the loss of profit as much as possible.

上記の技術案に基づいて、トランザクション要求集合のインセンティ因子が、トランザクション要求集合内のトランザクション要求の支払証書情報と空間占有量に基づいて決定される場合、該インセンティ因子は、トランザクション要求集合の価格性能比と呼ばれてもよく、したがって、図4は例として、価格性能比の順序付きグラフ及び候補トランザクション要求集合の順序付きグラフの模式図を示しており、本願の実施形態の具体的な限定として解釈されるべきではない。ここで、価格性能比の順序付きグラフとは、トランザクション要求集合の候補因子間隔を上限値や下限値などの間隔値に従って並べ替えて、例えば候補因子間隔1、2、......Nまたは価格性能比間隔1、2、......Nを含む間隔の順序付きグラフを得ることを意味しており、Nは整数である。候補因子間隔とそれに対応する候補トランザクション要求集合は、例えば候補因子間隔をキーとして、候補因子間隔に対応する候補トランザクション要求集合をキー値として使用するなど、キー値対(key-value)の関係に従って格納されてもよい。さらに、各候補因子間隔Nまたは価格性能比間隔Nに対応する複数の候補トランザクション要求集合を、各候補トランザクション要求集合の空間占有量に応じて、大きい方から小さい方へ並べ替えて、候補トランザクション要求集合の順序付きグラフNを取得してもよい。各候補トランザクション要求集合の順序付きグラフは同様にキー値対の形で格納されてもよく、例えば、同一の候補因子間隔内において、各候補トランザクション要求集合の集合シーケンスまたは番号をキーとし、候補トランザクション要求集合の空間占有量をキー値として格納できる。新たな候補因子間隔や価格性能比間隔が作成されたり、間隔内の候補トランザクション要求集合が変更されたりするたびに、該間隔に現在に対応する候補トランザクション要求集合が集合の空間占有量に応じて並べ替えられ、候補トランザクション要求集合の順序付きグラフが得られる。 Based on the above technical scheme, if the incentive factor of the transaction request set is determined according to the bill of payment information and space occupation of the transaction requests in the transaction request set, the incentive factor is the price performance of the transaction request set ratio, and thus FIG. 4 shows, by way of example, schematic diagrams of an ordered graph of price-performance ratios and an ordered graph of candidate transaction request sets, and as a specific limitation of the embodiments of the present application, FIG. should not be interpreted. Here, the ordered graph of the price/performance ratio means that the candidate factor intervals of the transaction request set are rearranged according to the interval values such as the upper limit value and the lower limit value, for example, the candidate factor intervals 1, 2, . . . . . . N or price/performance intervals 1, 2, . . . . . . It means to obtain an ordered graph of intervals containing N, where N is an integer. The candidate factor interval and its corresponding candidate transaction request set are determined according to a key-value relationship, such as using the candidate factor interval as a key and the candidate transaction request set corresponding to the candidate factor interval as a key value. may be stored. Furthermore, a plurality of candidate transaction request sets corresponding to each candidate factor interval N or price/performance ratio interval N are sorted from the largest to the smallest according to the space occupation of each candidate transaction request set to obtain candidate transaction requests An ordered graph N of sets may be obtained. The ordered graph of each candidate transaction request set may also be stored in the form of key-value pairs, e.g., within the same candidate factor interval, keyed by the set sequence or number of each candidate transaction request set, and candidate transaction request set The space footprint of the request set can be stored as a key value. Each time a new candidate factor interval or price/performance ratio interval is created, or the set of candidate transaction requests within an interval is changed, the set of candidate transaction requests currently corresponding to that interval is updated according to the space footprint of the set. A sorted, ordered graph of candidate transaction request sets is obtained.

価格性能比の順序付きグラフと候補トランザクション要求集合の順序付きグラフとを総合的に利用することで、目標トランザクション要求集合の選択処理において選択対象トランザクション要求を効率的に管理することができ、目標トランザクション要求集合を効率的に選択するための基盤を築くことができる。 By comprehensively utilizing the ordered graph of the price-performance ratio and the ordered graph of the candidate transaction request set, it is possible to efficiently manage the transaction requests to be selected in the process of selecting the target transaction request set. It can lay the foundation for efficiently selecting a set of requirements.

図5は、本願の実施形態に開示されたブロックチェーン内のトランザクション要求処理のアーキテクチャの模式図である。図5に示すように、現在のブロック生成サイクルの間、ブロックチェーンネットワーク内で選択対象トランザクション要求は、選択対象トランザクション要求リストの形で格納されてもよく、選択対象トランザクション要求集合間の依存関係に基づいて有向非循環グラフが構築され、少なくとも1つのトランザクション要求集合が決定される。次いで、トランザクション要求集合が属する候補因子間隔がトランザクション要求集合のインセンティブ因子に基づいて決定される。次いで、構築された価格性能比の順序付きグラフを用いて現在の目標因子間隔を決定し、候補トランザクション要求集合の順序付きグラフを用いて現在の目標トランザクション要求集合を決定することにより、ブロックチェーンノードがブロック生成過程に参加するトランザクション要求集合を選択する際の効率を向上させることができる。さらに、現在の目標トランザクション要求集合の決定に伴い、有向非循環グラフ、価格性能比の順序付きグラフ、および候補トランザクション要求集合の順序付きグラフは、ブロックチェーンネットワーク内の残りの選択対象トランザクション要求に応じて適応的に変更することができる。 FIG. 5 is a schematic diagram of the architecture of transaction request processing within the blockchain disclosed in the embodiments of the present application. As shown in FIG. 5 , during the current block generation cycle, the selected transaction requests may be stored in the blockchain network in the form of a selected transaction request list, and the dependencies between the selected transaction request sets. A directed acyclic graph is constructed based on and at least one transaction request set is determined. A candidate factor interval to which the transaction request set belongs is then determined based on the transaction request set's incentive factor. Then, by determining the current target factor interval using the constructed ordered graph of price-performance ratios and determining the current target transaction request set using the ordered graph of candidate transaction request sets, the blockchain node can improve the efficiency in selecting the transaction request set participating in the block generation process. In addition, with the determination of the current target transaction request set, the directed acyclic graph, the price-performance ordered graph, and the candidate transaction request set ordered graph are applied to the remaining selected target transaction requests in the blockchain network. It can be adaptively changed accordingly.

図6は、本願の実施形態に開示された別のブロックチェーン内の
トランザクション要求処理方法のフローチャートであり、上記の技術案に基づいてさらに最適化され、拡張されており、上記の任意の実施形態の各々と組み合わせてもよい。具体的には、図6は、有限回数の循環の実行過程を例として、本願の実施形態における現在の目標トランザクション要求集合を選択する過程を例示的に説明しており、本願の実施形態の特定の制限として解釈されるべきではない。図6に示すように、当該方法は、以下を含んでもよい。
FIG. 6 is a flow chart of another intra-blockchain transaction request processing method disclosed in an embodiment of the present application, which is further optimized and extended based on the above technical scheme, and can be used in any of the above embodiments. may be combined with each of Specifically, FIG. 6 exemplifies the process of selecting the current target transaction request set in an embodiment of the present application, taking the execution process of a finite number of cycles as an example. should not be construed as a limitation of As shown in FIG. 6, the method may include the following.

S601では、現在の最高価格性能比間隔に対応する候補トランザクション要求集合の順序付きグラフを選択する。
S602では、候補トランザクション要求集合の順序付きグラフにおいて空間占有量が最も大きい候補トランザクション要求集合を選択する。
At S601, an ordered graph of candidate transaction request sets corresponding to the current best price/performance interval is selected.
At S602, select the candidate transaction request set with the largest space occupation in the ordered graph of candidate transaction request sets.

なお、現在の最高価格性能比間隔に対応する候補トランザクション要求集合の順序付きグラフにおいて、ブロックチェーンノードがトランザクション要求を選択するための時間コストを削減し、収益と時間コスト(計算能力)のバランスを取り、自分の簿記権を確保するために、空間占有量が最も大きい候補トランザクション要求集合が、現在の目標トランザクション要求集合として第1優先的に選択される。なぜなら、同じ価格性能比間隔で毎回最大の価格性能比を持つ候補トランザクション要求集合が選択されると、最大の収益を保証できるものの、処理コストが高くなるリスクがあるため、例えば、ブロックチェーンノードが区間占有量が非常に小さいトランザクションを100件処理した場合、総収益は100であり、一方、空間占有量が最も大きいトランザクションを処理した場合、総収益は99であるが、その空間占有量が最も大きいトランザクションのコストの処理は、時間コストの点で前者の1%に過ぎない。ブロックアウトを競合させるシナリオでは、ブロックチェーンノードが最大の収益を持つ最適なトランザクションを見つけることに時間コストのすべてを費やしてしまうと、簿記権を掴めなくなる可能性があるため、収益と時間コストの両方のバランスを取る必要があり、両方を考慮した効果を達成する。 In addition, in the ordered graph of the candidate transaction request set corresponding to the current best price-performance interval, we reduce the time cost for the blockchain node to select the transaction request, and balance the profit and time cost (computing power). The candidate transaction request set with the largest space occupancy is selected as the current target transaction request set with first priority to secure its own bookkeeping rights. This is because if the candidate transaction request set with the largest price-performance ratio is selected every time in the same price-performance interval, the maximum profit can be guaranteed, but there is a risk that the processing cost will be high. If 100 transactions with a very small space occupation are processed, the total profit is 100, while if the transaction with the largest space occupation is processed, the total profit is 99, but the space occupation is the largest. Processing the cost of large transactions is only 1% of the former in terms of time cost. In a competing blockout scenario, if a blockchain node spends all of its time cost on finding the optimal transaction with the highest return, it may lose its bookkeeping rights, so it is Both need to be balanced to achieve the effect of considering both.

S603では、積算空間占有量によってブロック空間閾値を超えるかどうかを判断する。
YESの場合は、ステップS604が実行され、NOの場合は、ステップS607が実行される。
In S603, it is determined whether or not the integrated space occupation amount exceeds the block space threshold.
If YES, step S604 is executed, and if NO, step S607 is executed.

S604では、現在の候補トランザクション要求集合の順序付けグラフにおいて、選択可能な空間占有量が小さいトランザクション要求の候補集合があるか否かを判断する。 In S604, it is determined whether there is a candidate set of transaction requests with a small space occupation that can be selected in the current ordering graph of candidate transaction request sets.

YESの場合はステップS606を実行し、NOの場合はステップS605を実行する。
S605では、二番目に高い価格性能比間隔に対応する候補トランザクション要求集合の順序付きグラフを選択する。
If YES, step S606 is executed; if NO, step S605 is executed.
At S605, select the ordered graph of the candidate transaction request set corresponding to the second highest price/performance interval.

S606では、現在の候補トランザクション要求集合の順序付きグラフにおいて空間占有量が比較的に小さい候補トランザクション要求集合を選択する。 At S606, select a candidate transaction request set that has a relatively small space occupation in the current candidate transaction request set ordered graph.

具体的には、現在の最高価格性能比間隔に対応する候補トランザクション要求集合の順序付きグラフにおいて、空間占有量が二番目に大きい候補トランザクション要求集合を選択し、ステップS603を返し、累積空間占有量がブロック空間閾値を超えるか否かを再度判断し、ブロック生成過程に参加可能な候補トランザクション要求集合が選択されるまで循環実行を行う。これにより、累積的に選択された集合の空間占有量がブロック空間閾値を超えないようにする。 Specifically, in the ordered graph of the candidate transaction request set corresponding to the current best price-performance interval, select the candidate transaction request set with the second largest space occupancy, return step S603, and return the cumulative space occupancy exceeds the block space threshold, and circular execution is performed until a candidate transaction request set that can participate in the block generation process is selected. This ensures that the space occupancy of the cumulatively selected set does not exceed the block space threshold.

S607では、空間占有量が最も大きい候補トランザクション要求集合をブロックに追加できると判断し、当該候補トランザクション要求集合を削除し、且つ、対応する候補トランザクション要求集合の順序付きグラフが空であれば、その対応する候補トランザクション要求集合の順序付きグラフ及び対応する価格性能比間隔を削除する。 In S607, it is determined that the candidate transaction request set with the largest space occupation can be added to the block, the candidate transaction request set is deleted, and if the ordered graph of the corresponding candidate transaction request set is empty, the Delete the ordered graph of the corresponding candidate transaction request set and the corresponding price/performance interval.

複数回の循環選択を経て、累積的に選択された目標トランザクション要求集合がブロック生成条件を満たす場合、例えば、これまでに、累積的に選択された目標トランザクション要求集合の総空間占有量がブロック空間閾値に達して、すなわち、ブロック空間が十分に利用されていると考えられることができ、累積的に選択されたトランザクション要求を実行してブロックを生成することができる。 If the cumulatively selected target transaction request set satisfies the block generation condition after multiple circular selections, for example, the total space occupancy of the cumulatively selected target transaction request set so far is the block space. A threshold is reached, ie, block space can be considered fully utilized, and cumulatively selected transaction requests can be executed to generate blocks.

本願の実施形態の技術案によれば、目標トランザクション要求集合を選択する過程において、価格性能比の順序付きグラフと候補トランザクション要求集合の順序付きグラフを総合的に活用することで、選択対象トランザクション要求に対する効果的な管理を実現しただけではなく、ブロック生成過程におけるブロックチェーンノードによるトランザクション要求の選択の合理性を向上させるとともに、選択効率を向上させ、ブロックアウト効率を向上させることができ、同時に、収益獲得の観点から、簿記権を有するブロックチェーンノードの収益を効果的に保証することができ、簿記権を積極的に獲得しようとするブロックチェーンノードのインセンティブ戦略としても効果的である。 According to the technical solution of the embodiment of the present application, in the process of selecting the target transaction request set, the ordered graph of the price-performance ratio and the ordered graph of the candidate transaction request set are comprehensively utilized to obtain the target transaction request It not only realizes effective management of From the perspective of profit acquisition, it can effectively guarantee the profit of blockchain nodes that have bookkeeping rights, and it is also an effective incentive strategy for blockchain nodes that actively try to acquire bookkeeping rights.

図7は、本願の実施形態に開示されたブロックチェーン内のトランザクション要求処理装置の構造の模式図であり、本願の実施形態はブロックチェーンノードが如何にブロック生成過程で待処理のトランザクション要求を合理的かつ効率的に選択する場合に適用可能である。本願の実施形態に開示された装置は、ソフトウェアおよび/またはハードウェアで実装されてもよく、ブロックチェーンノード上に統合されてもよく、このブロックチェーンノードは、計算能力を有する任意の電子デバイス上にデプロイされてもよい。 FIG. 7 is a schematic diagram of the structure of the transaction request processing device in the blockchain disclosed in the embodiment of the present application. It can be applied when selecting effectively and efficiently. The apparatus disclosed in the embodiments of the present application may be implemented in software and/or hardware, and may be integrated on blockchain nodes, which may be implemented on any electronic device with computing power. may be deployed to

図7に示すように、本願の実施形態に開示されたブロックチェーン内のトランザクション要求処理装置700は、トランザクション要求集合決定モジュール701、候補因子間隔決定モジュール702、およびトランザクション要求集合選択モジュール703を含んでもよい。 As shown in FIG. 7, the transaction request processing device 700 in the blockchain disclosed in the embodiments of the present application may include a transaction request set determination module 701, a candidate factor interval determination module 702, and a transaction request set selection module 703. good.

トランザクション要求集合決定モジュール701は、ブロックチェーンネットワーク内で依存関係を有する選択対象トランザクション要求を集約して少なくとも1つのトランザクション要求集合を得る。 The transaction request set determination module 701 aggregates selected target transaction requests having dependencies in the blockchain network to obtain at least one transaction request set.

候補因子間隔決定モジュール702は、トランザクション要求集合が属する候補因子間隔を決定して、前記因子間隔は、前記トランザクション要求集合がブロック生成過程に参加する確率を測定するために使用される。 Candidate factor interval determination module 702 determines a candidate factor interval to which a transaction request set belongs, said factor interval being used to measure the probability that said transaction request set participates in the block generation process.

トランザクション要求集合選択モジュール703は、候補因子間隔から現在の目標因子間隔を選択し、現在の目標因子間隔に対応する候補トランザクション要求集合から、ブロック生成過程に参加する現在の目標トランザクション要求集合を選択する。
好ましくは、候補因子間隔決定モジュール702は、
トランザクション要求集合のインセンティ因子に基づいて、作成された因子間隔の上限と下限をトラバースすることにより、トランザクション要求集合が属する候補因子間隔をマッチするマッチユニットであって、インセンティ因子は、ブロックチェーンノードがトランザクション要求集合内のトランザクション要求を実行することによって得られる奨励を特徴付けるために使用されるマッチユニットと、
マッチしない場合、トランザクション要求集合が属する候補因子間隔を再構築する再構築ユニットとを含む。
The transaction request set selection module 703 selects a current target factor interval from the candidate factor intervals and selects a current target transaction request set to participate in the block generation process from the candidate transaction request sets corresponding to the current target factor interval. .
Preferably, candidate factor interval determination module 702 includes:
A match unit that matches the candidate factor interval to which the transaction request set belongs by traversing the upper and lower bounds of the created factor interval based on the incentive factor of the transaction request set, wherein the incentive factor is the a match unit used to characterize rewards obtained by executing transaction requests in the transaction request set;
and a reconstruction unit that, if not matched, reconstructs the candidate factor interval to which the transaction request set belongs.

好ましくは、トランザクション要求収集選択モジュール703は、
候補因子間隔の間隔値に応じて現在の因子間隔を選択する間隔選択ユニットと、
現在の因子間隔に対応する候補トランザクション要求集合から、現在の因子間隔に対応する候補トランザクション要求集合による空間占有量に応じて、現在のトランザクション要求集合を選択する集合選択ユニットと、
現在のトランザクション要求集合と、現在のブロック生成サイクルにおいて選択された目標トランザクション要求集合に基づいて、現在のトランザクション要求集合を検証する検証ユニットと、
検証結果に基づいて、現在の目標因子間隔および現在の目標トランザクション要求集合を決定する決定ユニットとを含む。
Preferably, the transaction request collection selection module 703 includes:
an interval selection unit for selecting the current factor interval according to the interval value of the candidate factor interval;
a set selection unit for selecting the current transaction request set from the candidate transaction request sets corresponding to the current factor interval according to the space occupation by the candidate transaction request sets corresponding to the current factor interval;
a verification unit for verifying the current transaction request set based on the current transaction request set and a target transaction request set selected in the current block generation cycle;
and a determining unit for determining a current target factor interval and a current target transaction request set based on the verification results.

好ましくは、検証ユニットは、
現在のトランザクション要求集合と、現在のブロック生成サイクルにおいて選択された目標トランザクション要求集合との総空間占有量を計算する計算サブユニットと、
総空間占有量とブロック空間閾値との関係に基づいて、現在のトランザクション要求集合を検証する検証サブユニットとを含む。
Preferably, the verification unit comprises:
a calculation subunit for calculating the total space footprint of the current transaction request set and the target transaction request set selected in the current block generation cycle;
a verification sub-unit for verifying the current transaction request set based on the relationship between the total space occupancy and the block space threshold.

好ましくは、決定ユニットは、
現在のトランザクション要求集合に対する検証が失敗すると、現在の因子間隔を現在の目標因子間隔とし、現在の因子間隔に対応する残りの候補トランザクション要求集合に基づいて、現在の目標トランザクション要求集合の決定操作を実行する第1の決定サブユニットを含み、
ここで、残りの候補トランザクション要求集合は、検証に失敗したトランザクション要求集合以外の、現在の因子間隔に対応するトランザクション要求集合を含み、
第1の決定サブユニットは、現在のトランザクション要求集合に対する検証に合格した場合、現在の因子間隔を現在の目標因子間隔として、現在のトランザクション要求集合を現在の目標トランザクション要求集合として使用する。
Preferably, the determining unit
If the validation against the current transaction request set fails, the current factor interval is taken as the current target factor interval, and the current target transaction request set determination operation is performed based on the remaining candidate transaction request sets corresponding to the current factor interval. comprising a first decision subunit for executing;
wherein the remaining candidate transaction request sets include transaction request sets corresponding to the current factor interval other than the transaction request sets that failed validation;
The first determining sub-unit uses the current factor interval as the current target factor interval and the current transaction request set as the current target transaction request set if the verification against the current transaction request set passes.

好ましくは、決定ユニットはさらに、
現在の因子間隔に対応する残りの候補トランザクション要求集合から、現在の目標トランザクション要求集合を決定できないと、残りの候補因子間隔に基づいて現在の目標因子間隔の決定操作を実行し、新たに決定された現在の目標因子間隔に対応する候補トランザクション要求集合に基づいて現在の目標トランザクション要求集合の決定操作を実行する第2の決定サブユニットを含み、
ここで、残りの候補因子間隔が、現在の因子間隔以外の候補因子間隔を含む。
Preferably, the determining unit further comprises:
If the current target transaction request set cannot be determined from the remaining candidate transaction request sets corresponding to the current factor interval, perform the current target factor interval determination operation based on the remaining candidate factor intervals, and a second determining subunit for performing a current target transaction request set determination operation based on the candidate transaction request set corresponding to the current target factor interval;
Here, the remaining candidate factor intervals contain candidate factor intervals other than the current factor interval.

好ましくは、セット選択ユニットは、具体的には、以下のように使用される。
現在の因子間隔に対応する候補トランザクション要求集合の中から、候補トランザクション要求集合の空間占有量を並べ替えることにより、並べ替えの結果に基づいて現在のトランザクション要求集合を決定する;又は
現在の因子間隔に対応する候補トランザクション要求集合の中から、現在のトランザクション要求集合として、空間占有量が空間占有閾値よりも大きい候補トランザクション要求集合を決定する。
Preferably, the set selection unit is specifically used as follows.
Reordering the space occupancy of the candidate transaction request sets from among the candidate transaction request sets corresponding to the current factor interval to determine the current transaction request set based on the results of the reordering; or the current factor interval. Among the candidate transaction request sets corresponding to , a candidate transaction request set whose space occupation amount is greater than the space occupation threshold is determined as the current transaction request set.

好ましくは、本願の実施形態に開示された装置はさらに、
候補因子間隔決定モジュール702が、トランザクション要求集合が属する候補因子間隔の決定操作を実行する前に、トランザクション要求集合内のトランザクション要求の支払証書情報と空間占有量に基づいて、トランザクション要求集合のインセンティブ因子を決定するためのインセンティブ因子決定モジュールを含む。
Preferably, the devices disclosed in the embodiments of the present application further comprise:
Before the candidate factor interval determination module 702 performs the operation of determining the candidate factor interval to which the transaction request set belongs, the incentive factors of the transaction request set are determined based on the bill of payment information and space occupancy of the transaction requests in the transaction request set. including an incentive factor determination module for determining the

好ましくは、トランザクション要求収集決定モジュール701は、
ブロックチェーンネットワーク内の選択対象トランザクション要求間の依存関係に基づいて、選択対象トランザクション要求間の有向非循環グラフを構築する有向非循環グラフ構築ユニットと、
有向非循環グラフを使用して、依存関係を有する選択対象トランザクション要求を集約して、少なくとも1つのトランザクション要求集合を取得するトランザクション要求集合決定ユニットと、を含む。
Preferably, the transaction request collection decision module 701 includes:
a directed acyclic graph building unit for building a directed acyclic graph between the selected transaction requests based on the dependencies between the selected transaction requests in the blockchain network;
a transaction request set determination unit for aggregating selected target transaction requests with dependencies using a directed acyclic graph to obtain at least one transaction request set.

好ましくは、トランザクション要求集合は、リーフトランザクション要求と、リーフトランザクション要求が依存する各非リーフトランザクション要求とを含み、且つ、異なるトランザクション要求集合内のリーフトランザクション要求は、異なる。 Preferably, the transaction request set includes a leaf transaction request and each non-leaf transaction request upon which the leaf transaction request depends, and leaf transaction requests within different transaction request sets are different.

好ましくは、ブロックアウトを競合させるためのコンセンサスメカニズムがブロックチェーンネットワークにデプロイされている。 Preferably, a consensus mechanism is deployed in the blockchain network for competing blockouts.

本願の実施形態に開示されたブロックチェーン内のトランザクション要求処理装置700は、本願の実施形態に開示されたブロックチェーン内のトランザクション要求処理方法のいずれかを実行でき、実行方法に対応する機能モジュールおよび有益な効果を有する。本願の装置の実施形態において詳細に記載されていないことは、本願の任意の方法の実施形態における記述を参照できる。 The blockchain transaction request processing device 700 disclosed in the embodiments of the present application can execute any of the blockchain transaction request processing methods disclosed in the embodiments of the present application, and the functional modules and have beneficial effects. What is not described in detail in the apparatus embodiment of the present application can be referred to the description in any method embodiment of the present application.

本願の実施形態によれば、本願の実施形態はまた、電子デバイス及び可読記憶媒体を提供する。
図8に示すように、図8は、本願の実施形態のブロックチェーン内のトランザクション要求処理方法を実施するための電子デバイスのブロック図である。電子デバイスは、様々な形態のデジタルコンピュータ、例えば、ラップトップコンピュータ、デスクトップコンピュータ、ワークステーション、パーソナルデジタルアシスタント、サーバ、ブレードサーバ、メインフレームコンピュータ、及び他の好適なコンピュータを表すことが意図されている。また、電子デバイスはまた、様々な形態のモバイルデバイス、例えば、パーソナルデジタル処理、携帯電話、スマートフォン、ウェアラブルデバイス、及び他の類似のコンピューティングデバイスを表すことができる。本明細書に示されたコンポーネント、それらの接続及び関係、ならびにそれらの機能は、例としてのみ意図されており、本明細書に記載及び/又は請求された本願の実施形態の実現を限定することを意図するものではない。
According to embodiments of the present application, embodiments of the present application also provide an electronic device and a readable storage medium.
As shown in FIG. 8, FIG. 8 is a block diagram of an electronic device for implementing the transaction request processing method in blockchain of an embodiment of the present application. Electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. . Electronic devices can also represent various forms of mobile devices, such as personal digital assistants, cell phones, smart phones, wearable devices, and other similar computing devices. The components, their connections and relationships, and their functionality illustrated herein are intended as examples only and as a limitation to the implementation of the embodiments of the application as described and/or claimed herein. is not intended to be

図8に示すように、電子デバイスは、1つ以上のプロセッサ801、メモリ802、及び各コンポーネントを接続するための、高速インタフェース及び低速インタフェースを含むインタフェースを有する。様々なコンポーネントは、異なるバスを用いて相互に接続されており、共通のマザーボード上に実装されてもよいし、所望のように他の形態で実装されてもよい。プロセッサは、電子デバイス内で実行するための命令を処理してもよく、当該命令はメモリに記憶された命令またはメモリで外部入出力装置(例えば、インターフェースに結合されたディスプレイ装置)にグラフィカルユーザインターフェース(Graphical User Interface、GUI)のグラフィカル情報を表示させるための命令を含む。他の実施形態では、複数のプロセッサ及び/又は複数のバス及び複数のメモリが、所望に応じて、複数のメモリと一緒に使用されてもよい。同様に、複数の電子デバイスが接続されていてもよく、個々のデバイスが必要な操作の一部を提供しており、例えば、サーバアレイ、ブレードサーバのグループ、またはマルチプロセッサシステムとする。一つのプロセッサ801を一例として図8に示す。 As shown in Figure 8, the electronic device has one or more processors 801, memory 802, and interfaces, including high speed and low speed interfaces, for connecting the components. The various components are interconnected using different buses and may be implemented on a common motherboard or in other forms as desired. The processor may process instructions for execution within the electronic device, which instructions may be stored in memory or displayed in memory to an external input/output device (e.g., a display device coupled to the interface) to provide a graphical user interface. (Graphical User Interface, GUI) contains instructions for displaying graphical information. In other embodiments, multiple processors and/or multiple buses and multiple memories may be used, along with multiple memories, as desired. Similarly, multiple electronic devices may be connected, each providing some of the required operations, such as a server array, a group of blade servers, or a multi-processor system. One processor 801 is shown in FIG. 8 as an example.

メモリ802は、本願の実施形態によって提供される非瞬時コンピュータ可読記憶媒体である。ここで、前記メモリは、本願の実施形態に提供されるブロックチェーン内のトランザクション要求処理方法を前記少なくとも1つのプロセッサに実行させるために、前記少なくとも1つのプロセッサにより実行可能な命令を記憶している。本願の非瞬時コンピュータ可読記憶媒体は、本願の実施形態によって提供されるブロックチェーン内のトランザクション要求処理方法をコンピュータに実行させるために使用されるコンピュータ命令を記憶している。 Memory 802 is a non-instantaneous computer-readable storage medium provided by embodiments of the present application. wherein said memory stores instructions executable by said at least one processor to cause said at least one processor to execute a transaction request processing method in a blockchain provided in embodiments of the present application; . The non-instantaneous computer-readable storage medium of the present application stores computer instructions used to cause a computer to perform the transaction request processing methods in a blockchain provided by the embodiments of the present application.

メモリ802は、非瞬時コンピュータ可読記憶媒体として、非瞬間的なソフトウェアプログラム、非瞬間的なコンピュータ実行可能プログラム、及びモジュール、例えば、本願の実施形態におけるブロックチェーン内のトランザクション要求処理方法に対応するプログラム命令/モジュール、例えば、添付の図7に示すトランザクション要求集合決定モジュール701、候補因子間隔決定モジュール702、およびトランザクション要求集合選択モジュール703を格納するために使用することができる。プロセッサ801は、メモリ802に記憶された非瞬間的なソフトウェアプログラム、命令、及びモジュールを実行することにより、電子デバイスの各種機能アプリケーション及びデータ処理を実行して、上述した方法の実施形態におけるブロックチェーン内のトランザクション要求処理方法を実施する。 Memory 802 is a non-instantaneous computer-readable storage medium for storing non-instantaneous software programs, non-instantaneous computer-executable programs, and modules, such as programs corresponding to methods for processing transaction requests in a blockchain in embodiments herein. It can be used to store instructions/modules such as transaction request set determination module 701, candidate factor interval determination module 702, and transaction request set selection module 703 shown in FIG. 7 attached. The processor 801 performs various functional applications and data processing of the electronic device by executing non-instantaneous software programs, instructions and modules stored in the memory 802 to implement the blockchain in the method embodiments described above. Implement the transaction request processing method within.

メモリ802は、プログラム記憶領域とデータ記憶領域とを含んでもよく、プログラム記憶領域は、オペレーティングシステム、少なくとも1つの機能に必要なアプリケーションプログラムを格納してもよく、データ記憶領域は、電子デバイスの使用により作成されたデータなどを格納してもよい。さらに、メモリ802は、高速ランダムアクセスメモリを含んでもよく、また、少なくとも1つのディスクメモリ装置、フラッシュメモリ装置、または他の非瞬間的な固体状態のメモリ装置などの非瞬間的なメモリを含んでもよい。いくつかの実施形態では、メモリ802は、好ましくは、プロセッサ801に対して相対的に遠隔に配置されたメモリを含み、これらの遠隔メモリは、ネットワークを介して、本願の実施形態のブロックチェーン内のトランザクション要求処理方法を実装するための電子デバイスに接続されてもよい。前記ネットワークの例としては、インターネット、企業のイントラネット、ローカルエリアネットワーク、移動体通信ネットワーク、及びそれらの組合せが挙げられるが、これらに限定されるものではない。 The memory 802 may include a program storage area and a data storage area, where the program storage area may store an operating system, application programs required for at least one function, and the data storage area may be used to operate the electronic device. You may store the data etc. which were produced by. Additionally, memory 802 may include high speed random access memory and may also include non-instantaneous memory such as at least one disk memory device, flash memory device, or other non-instantaneous solid state memory device. good. In some embodiments, memory 802 preferably includes memory remotely located relative to processor 801, and these remote memories are connected via a network to the blockchain of the present embodiments. may be connected to an electronic device for implementing the transaction request processing method of . Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

本願の実施形態中のブロックチェーン内のトランザクション要求処理方法を実装するための電子デバイスはまた、入力装置803と出力装置804を含んでもよい。プロセッサ801、メモリ802、入力装置803および出力装置804は、バスを介して接続されていてもよく、他の形態で接続されていてもよく、図8ではバスを介した接続を例に挙げている。 An electronic device for implementing the transaction request processing method in a blockchain in embodiments of the present application may also include an input device 803 and an output device 804 . The processor 801, the memory 802, the input device 803 and the output device 804 may be connected via a bus or may be connected in other forms, and connection via a bus is taken as an example in FIG. there is

入力装置803は、入力された数値情報または文字情報を受信するとともに、本願の実施形態中のブロックチェーン内のトランザクション要求処理方法を実現するための電子デバイスのユーザ設定及び機能制御に関連するキー信号入力を生成してもよく、例えば、タッチスクリーン、キーパッド、マウス、トラックパッド、タッチパッド、インジケータスティック、1つ以上のマウスボタン、トラックボール、ジョイスティックなどの入力装置などが挙げられる。出力装置804は、表示装置、補助照明装置、ハプティックフィードバック装置などを含んでもよく、ここで、補助照明装置は、例えば、発光ダイオード(Light Emitting Diode,LED)であり、ハプティックフィードバック装置は、例えば、振動モータなどである。当該表示装置としては、液晶ディスプレイ(Liquid Crystal Display,LCD)、LEDディスプレイ、プラズマディスプレイなどが挙げられるが、これらに限定されるものではない。いくつかの実施形態では、表示装置はタッチスクリーンであってもよい。 The input device 803 receives input numerical information or character information and key signals related to user settings and functional control of electronic devices for implementing the transaction request processing method in the blockchain in the embodiments of the present application. Input may be generated by input devices such as touch screens, keypads, mice, trackpads, touchpads, indicator sticks, one or more mouse buttons, trackballs, joysticks, and the like. The output device 804 may include a display device, a supplemental lighting device, a haptic feedback device, etc., where the supplemental lighting device is, for example, a Light Emitting Diode (LED), and the haptic feedback device is, for example, For example, a vibration motor. The display device includes, but is not limited to, a liquid crystal display (LCD), an LED display, a plasma display, and the like. In some embodiments, the display device may be a touch screen.

本明細書に記載されたシステム及び技術の様々な実施形態は、デジタル電子回路システム、集積回路システム、専用集積回路(Application Specific Integrated Circuit,ASIC)、コンピュータハードウェア、ファームウェア、ソフトウェア、及び/又はそれらの組合せで実施することができる。これらの様々な実施形態は、以下を含み得る:1つ以上のコンピュータプログラムで実施し、当該1つ以上のコンピュータプログラムは、少なくとも1つのプログラマブルプロセッサを含むプログラマブルシステム上で実行および/又は解釈され、当該プログラマブルプロセッサは、記憶システム、少なくとも1つの入力装置、および少なくとも1つの出力装置からデータおよび指示を受信し、且つデータ及び指示を当該記憶システム、当該少なくとも1つの入力装置、及び当該少なくとも1つの出力装置へ転送することができる専用または汎用のプログラマブルプロセッサであってもよい。 Various embodiments of the systems and techniques described herein may be digital electronic circuit systems, integrated circuit systems, application specific integrated circuits (ASICs), computer hardware, firmware, software, and/or can be implemented in a combination of These various embodiments may include: embodied in one or more computer programs, which are executed and/or interpreted on a programmable system including at least one programmable processor; The programmable processor receives data and instructions from the storage system, at least one input device, and at least one output device, and transmits data and instructions to the storage system, the at least one input device, and the at least one output device. It may be a dedicated or general purpose programmable processor that can be transferred to the device.

これらのコンピュータプログラムはプログラム、ソフトウェア、ソフトウェアアプリケーション、またはコードとも呼ばれ、プログラマブルプロセッサのための機械命令を含み、高レベル手順及び/又はオブジェクト指向のプログラミング言語、及び/又はアセンブリ/機械語を使用してこれらのコンピュータプログラムを実装することができる。本明細書で使用されるように、「機械可読媒体」及び「コンピュータ可読媒体」という用語は、機械命令及び/又はデータをプログラマブルプロセッサに提供するために使用される任意のコンピュータプログラム製品、デバイス、及び/又は装置、例えば、磁気ディスク、光ディスク、メモリ、プログラマブルロジックデバイス(Programmable Logic Device,PLD)を指し、機械読取信号である機械命令を受け取る機械読取媒体を含む。「機械可読信号」という用語は、機械命令及び/又はデータをプログラマブルプロセッサに提供するために使用される任意の信号を指す。 These computer programs, also called programs, software, software applications, or code, contain machine instructions for programmable processors and use high-level procedural and/or object-oriented programming languages, and/or assembly/machine language. can be used to implement these computer programs. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, or device used to provide machine instructions and/or data to a programmable processor. and/or apparatus, eg, magnetic disk, optical disk, memory, Programmable Logic Device (PLD), including a machine-readable medium for receiving machine instructions, which are machine-readable signals. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.

ユーザとの相互作用を提供するために、本明細書に記載されているシステム及び技術は、ユーザに情報を表示するための表示装置(例えば、陰極線管(Cathode Ray Tube,CRT)またはLCDモニタ)と、ユーザがコンピュータに入力を提供するためのキーボード及びポインティング装置(例えば、マウスまたはトラックボール)とを有するコンピュータ上に実装されてもよい。他の種類の装置もまた、ユーザとの相互作用を提供するために使用されてもよく、例えば、ユーザに提供されるフィードバックは、任意の形態の感覚フィードバック、例えば、視覚フィードバック、聴覚フィードバック、またはハプティックフィードバックであってもよく、ユーザからの入力は、任意の形態、例えば、音響入力、音声入力、またはハプティック入力などで受信されてもよい。 To provide user interaction, the systems and techniques described herein use a display device (e.g., a Cathode Ray Tube (CRT) or LCD monitor) to display information to the user. and a keyboard and pointing device (eg, a mouse or trackball) for a user to provide input to the computer. Other types of devices may also be used to provide interaction with the user, e.g., the feedback provided to the user may be any form of sensory feedback, e.g., visual feedback, auditory feedback, or There may be haptic feedback, and input from the user may be received in any form, such as acoustic, speech, or haptic input.

本明細書に記載されているシステム及び技術は、バックエンドコンポーネントを含むコンピューティングシステム(例えば、データサーバー)、ミドルウェアコンポーネントを含むコンピューティングシステム(例えば、アプリケーションサーバー)、またはフロントエンドコンポーネントを含むコンピューティングシステム(例えば、グラフィカルユーザーインターフェイスまたはWebブラウザーを備えたユーザーコンピューターである。ユーザーは当該グラフィカルユーザーインターフェイスまたは当該Webブラウザーを介して、ここで説明するシステムおよび技術の実施形態と対話できる)、又はそのようなバックエンドコンポーネント、ミドルウェアコンポーネント、またはフロントエンドコンポーネントの任意の組合せを含むコンピューティングシステムで実装されてもよい。システムのコンポーネントは、任意の形態または媒体のデジタルデータ通信、例えば、通信ネットワークを介して相互に接続されていてもよい。通信ネットワークの例としては、ローカルエリアネットワーク(Local Area Network,LAN)、ワイドエリアネットワーク(Wide Area Network,WAN)、インターネット、ブロックチェーンネットワークなどがある。 The systems and techniques described herein may be computing systems that include back-end components (e.g., data servers), computing systems that include middleware components (e.g., application servers), or computing systems that include front-end components. system (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or such may be implemented in a computing system including any combination of back-end components, middleware components, or front-end components. The components of the system may be interconnected through any form or medium of digital data communication, eg, a communication network. Examples of communication networks include Local Area Networks (LANs), Wide Area Networks (WANs), the Internet, blockchain networks, and the like.

コンピュータシステムは、クライアントとサーバを含むことができる。クライアントとサーバは一般的に互いに遠隔地にあり、通常は通信ネットワークを介して相互に作用する。クライアント-サーバ関係は、対応するコンピュータ上で実行され、互いにクライアント-サーバ関係を有するコンピュータプログラムによって生成される。 The computer system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. A client-server relationship is created by computer programs running on corresponding computers and having a client-server relationship to each other.

本願の実施形態の技術案によれば、現在の目標因子間隔を選択し、現在の目標因子間隔に対応する候補トランザクション要求集合から現在の目標トランザクション要求集合を選択するという循環論理に従って、ブロック生成過程に参加する目標トランザクション要求集合は、少なくとも1つの循環選択の後に累積的に決定され、最終的に、累積的に決定された目標トランザクション要求集合内のトランザクション要求を実行することによってブロックが生成され、ここで、目標トランザクション要求集合内のトランザクション要求間には依存関係が存在し、ブロック生成過程におけるブロックチェーンノードによってトランザクション要求を選択する合理性と選択効率を向上させ、且つ、ブロックアウト効率を向上させることができる。 According to the technical solution of the embodiment of the present application, the block generation process according to the circular logic of selecting the current target factor interval and selecting the current target transaction request set from the candidate transaction request set corresponding to the current target factor interval. A target transaction request set participating in is cumulatively determined after at least one circular selection, and finally a block is generated by executing the transaction requests in the cumulatively determined target transaction request set; Here, there is a dependency relationship between the transaction requests in the target transaction request set, which improves the rationality and selection efficiency of transaction request selection by blockchain nodes in the block generation process, and improves the blockout efficiency. be able to.

上述した処理の様々な実施形態を用いて、順序を変えたり、ステップを追加/削除したりすることができることが理解されるべきである。例えば、本願に開示された技術案の所望の結果が達成される限り、本願に記載された各ステップは、本明細書に限定されるものではなく、並行して実行されてもよいし、順次実行されてもよいし、異なる順序で実行されてもよい。 It should be understood that the order may be changed and steps added/deleted from the various embodiments of the processes described above. For example, as long as the desired result of the technical solution disclosed in this application is achieved, each step described in this application is not limited to this specification, and may be performed in parallel or sequentially. may be performed, and may be performed in a different order.

上記の具体的な実施形態は、本開示の保護範囲の制限を構成するものではない。設計要件および他の要因に応じて、様々な変更、組み合わせ、サブ組み合わせおよび置換が行われ得ることは、当業者によって理解されるべきである。本開示の要旨および原則の範囲内で行われた修正、同等の代替、改良等は、本開示の保護範囲に含まれるものとする。 The above specific embodiments do not constitute a limitation of the protection scope of this disclosure. It should be understood by those skilled in the art that various modifications, combinations, subcombinations and permutations may be made depending on design requirements and other factors. Modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of this disclosure shall fall within the protection scope of this disclosure.

Claims (14)

ブロックチェーン内のトランザクション要求処理装置により実行されるブロックチェーン内のトランザクション要求処理方法であって、
ブロックチェーンネットワーク内で依存関係を有する選択対象トランザクション要求を集約して少なくとも1つのトランザクション要求集合を得るステップと、
前記トランザクション要求集合の属性に基づいて、前記トランザクション要求集合が属する候補因子間隔を決定するステップであって、前記因子間隔は、前記トランザクション要求集合がブロック生成過程に参加する確率を測定するために使用されるステップと、
前記候補因子間隔から現在の目標因子間隔を選択し、前記現在の目標因子間隔に対応する前記候補トランザクション要求集合から、ブロック生成過程に参加する現在の目標トランザクション要求集合を選択するステップとを含む、ことを特徴とするブロックチェーン内のトランザクション要求処理方法。
An intra-blockchain transaction request processing method executed by an intra-blockchain transaction request processing device, comprising:
aggregating selected target transaction requests having dependencies in a blockchain network to obtain at least one set of transaction requests;
determining a candidate factor interval to which the transaction request set belongs based on attributes of the transaction request set, wherein the factor interval is used to measure the probability that the transaction request set participates in a block generation process; and
selecting a current target factor interval from the candidate factor intervals and selecting a current target transaction request set to participate in block generation process from the candidate transaction request set corresponding to the current target factor interval; A transaction request processing method in a blockchain, characterized by:
前記トランザクション要求集合が属する候補因子間隔を決定するステップは、
前記トランザクション要求集合のインセンティブ因子に基づいて、作成された因子間隔の上限と下限をトラバースすることにより、前記トランザクション要求集合が属する候補因子間隔をマッチするステップであって、前記インセンティブ因子は、ブロックチェーンノードが前記トランザクション要求集合内のトランザクション要求を実行することによって得られる奨励を特徴付けるために使用されるステップと、
マッチしない場合、トランザクション要求集合が属する候補因子間隔を再構築するステップとを含む、ことを特徴とする請求項1に記載の方法。
Determining a candidate factor interval to which the transaction request set belongs comprises:
matching a candidate factor interval to which the transaction request set belongs by traversing upper and lower bounds of a created factor interval based on an incentive factor of the transaction request set, wherein the incentive factor is a block chain a step used to characterize the incentive a node obtains from executing a transaction request in said transaction request set;
and if there is no match, reconstructing the candidate factor interval to which the transaction request set belongs.
前記候補因子間隔から現在の目標因子間隔を選択し、前記現在の目標因子間隔に対応する前記候補トランザクション要求集合から、ブロック生成過程に参加する現在の目標トランザクション要求集合を選択するステップは、
前記候補因子間隔の間隔値に応じて現在の因子間隔を選択するステップと、
前記現在の因子間隔に対応する候補トランザクション要求集合から、前記現在の因子間隔に対応する候補トランザクション要求集合による空間占有量に応じて、現在のトランザクション要求集合を選択するステップと、
前記現在のトランザクション要求集合と、現在のブロック生成サイクルにおいて選択された目標トランザクション要求集合に基づいて、前記現在のトランザクション要求集合を検証するステップと、
前記検証結果に基づいて、前記現在の目標因子間隔および前記現在の目標トランザクション要求集合を決定するステップとを含む、ことを特徴とする請求項1に記載の方法。
selecting a current target factor interval from the candidate factor intervals and selecting a current target transaction request set to participate in a block generation process from the candidate transaction request set corresponding to the current target factor interval;
selecting a current factor interval according to an interval value of said candidate factor interval;
selecting a current transaction request set from the candidate transaction request sets corresponding to the current factor interval according to the space occupied by the candidate transaction request sets corresponding to the current factor interval;
verifying the current transaction request set based on the current transaction request set and a target transaction request set selected in a current block generation cycle;
and determining the current target factor interval and the current target transaction request set based on the verification results.
前記現在のトランザクション要求集合と、現在のブロック生成サイクルにおいて選択された目標トランザクション要求集合に基づいて、前記現在のトランザクション要求集合を検証するステップは、
前記現在のトランザクション要求集合と、現在のブロック生成サイクルにおいて選択された目標トランザクション要求集合との総空間占有量を計算するステップと、
前記総空間占有量と前記ブロック空間閾値との関係に基づいて、前記現在のトランザクション要求集合を検証するステップとを含む、ことを特徴とする請求項3に記載の方法。
verifying the current transaction request set based on the current transaction request set and a target transaction request set selected in a current block generation cycle;
calculating the total space footprint of the current transaction request set and a target transaction request set selected in the current block generation cycle;
and verifying the current set of transaction requests based on the relationship between the total space footprint and the block space threshold.
前記検証結果に基づいて、前記現在の目標因子間隔および前記現在の目標トランザクション要求集合を決定するステップは、
前記現在のトランザクション要求集合に対する検証が失敗すると、前記現在の因子間隔を前記現在の目標因子間隔とし、前記現在の因子間隔に対応する残りの候補トランザクション要求集合に基づいて、前記現在の目標トランザクション要求集合の決定操作を実行するステップを含み、
前記残りの候補トランザクション要求集合は、前記検証に失敗したトランザクション要求集合以外の、前記現在の因子間隔に対応するトランザクション要求集合を含む、ことを特徴とする請求項3又は4に記載の方法。
determining the current target factor interval and the current target transaction request set based on the verification results;
if the validation against the current set of transaction requests fails, set the current factor interval as the current target factor interval, and determine the current target transaction request based on the remaining candidate transaction request sets corresponding to the current factor interval; including the step of performing a set decision operation;
5. The method of claim 3 or 4, wherein the remaining candidate transaction request sets include transaction request sets corresponding to the current factor interval other than the transaction request sets that failed validation.
前記検証結果に基づいて、前記現在の目標因子間隔および前記現在の目標トランザクション要求集合を決定するステップはまた、
前記現在の因子間隔に対応する残りの候補トランザクション要求集合から、前記現在の目標トランザクション要求集合を決定できないと、残りの候補因子間隔に基づいて前記現在の目標因子間隔の決定操作を実行し、新たに決定された現在の目標因子間隔に対応する候補トランザクション要求集合に基づいて前記現在の目標トランザクション要求集合の決定操作を実行するステップを含み、
前記残りの候補因子間隔が、前記現在の因子間隔以外の候補因子間隔を含む、ことを特徴とする請求項5に記載の方法。
Determining the current target factor interval and the current target transaction request set based on the verification results also includes:
If the current target transaction request set cannot be determined from the remaining candidate transaction request sets corresponding to the current factor interval, performing the current target factor interval determination operation based on the remaining candidate factor intervals; performing the current target transaction request set determination operation based on the candidate transaction request sets corresponding to the current target factor interval determined in
6. The method of claim 5, wherein the remaining candidate factor intervals include candidate factor intervals other than the current factor interval.
前記現在の因子間隔に対応する候補トランザクション要求集合から、前記現在の因子間隔に対応する候補トランザクション要求集合による空間占有量に応じて、現在のトランザクション要求集合を選択するステップは、
前記現在の因子間隔に対応する候補トランザクション要求集合の中から、前記候補トランザクション要求集合の空間占有量を並べ替えることにより、並べ替えの結果に基づいて 前記現在のトランザクション要求集合を決定するステップ、又は
前記現在の因子間隔に対応する候補トランザクション要求集合の中から、前記現在のトランザクション要求集合として、空間占有量が空間占有閾値よりも大きい候補トランザクション要求集合を決定するステップを含む、ことを特徴とする請求項3に記載の方法。
selecting a current transaction request set from the candidate transaction request sets corresponding to the current factor interval according to a space occupation by the candidate transaction request sets corresponding to the current factor interval;
reordering the space occupancy of the candidate transaction request sets from among the candidate transaction request sets corresponding to the current factor interval to determine the current transaction request set based on the results of the reordering; or determining, as the current transaction request set, a candidate transaction request set whose space occupancy is greater than a space occupancy threshold from among the candidate transaction request sets corresponding to the current factor interval. 4. The method of claim 3.
前記トランザクション要求集合が属する候補因子間隔を決定する前に、前記方法は、さらに
前記トランザクション要求集合におけるトランザクション要求の支払証書情報および空間占有量に基づいて、前記トランザクション要求集合のインセンティブ因子を決定するステップを含む、ことを特徴とする請求項2に記載の方法。
Before determining the candidate factor interval to which the transaction request set belongs, the method further comprises determining an incentive factor for the transaction request set based on payment instrument information and space occupancy of transaction requests in the transaction request set. 3. The method of claim 2, comprising:
前記ブロックチェーンネットワーク内で依存関係を有する選択対象トランザクション要求を集約して少なくとも1つのトランザクション要求集合を得るステップは、
前記ブロックチェーンネットワーク内の前記選択対象トランザクション要求間の前記依存関係に基づいて、前記選択対象トランザクション要求間の有向非循環グラフを構築するステップと、
前記有向非循環グラフを使用して、依存関係を有する選択対象トランザクション要求を集約して、前記少なくとも1つのトランザクション要求集合を取得するステップとを含む、ことを特徴とする請求項1に記載の方法。
aggregating selected target transaction requests having dependencies in the blockchain network to obtain at least one set of transaction requests;
building a directed acyclic graph among the selected transaction requests based on the dependencies between the selected transaction requests in the blockchain network;
and aggregating selected transaction requests with dependencies using the directed acyclic graph to obtain the at least one set of transaction requests. Method.
前記ブロックの生成を競合させるためのコンセンサス機構を前記ブロックチェーンネットワークにデプロイしている、ことを特徴とする請求項1に記載の方法。 2. The method of claim 1, wherein a consensus mechanism for competing production of the blocks is deployed in the blockchain network. ブロックチェーンネットワーク内で依存関係を有する選択対象トランザクション要求を集約して少なくとも1つのトランザクション要求集合を得るトランザクション要求集合決定モジュールと、
前記トランザクション要求集合の属性に基づいて、前記トランザクション要求集合が属する候補因子間隔を決定する候補因子間隔決定モジュールであって、前記因子間隔は、前記トランザクション要求集合がブロック生成過程に参加する確率を測定するために使用される候補因子間隔決定モジュールと、
前記候補因子間隔から現在の目標因子間隔を選択し、前記現在の目標因子間隔に対応する前記候補トランザクション要求集合から、ブロック生成過程に参加する現在の目標トランザクション要求集合を選択するトランザクション要求集合選択モジュールとを有する、ことを特徴とするブロックチェーン内のトランザクション要求処理装置。
a transaction request set determination module that aggregates selected target transaction requests having dependencies in a blockchain network to obtain at least one transaction request set;
A candidate factor interval determination module for determining a candidate factor interval to which said transaction request set belongs based on attributes of said transaction request set, said factor interval measuring a probability that said transaction request set participates in a block generation process. a candidate factor interval determination module used to
A transaction request set selection module for selecting a current target factor interval from said candidate factor intervals and selecting a current target transaction request set to participate in a block generation process from said candidate transaction request sets corresponding to said current target factor interval. A transaction request processing device in a blockchain, characterized by comprising:
少なくとも1つのプロセッサと、
前記少なくとも1つのプロセッサに通信可能に接続されたメモリとを有し、
前記メモリは、前記少なくとも1つのプロセッサによって実行可能な命令を記憶し、前記命令は、前記少なくとも1つのプロセッサが請求項1~10のいずれか1項に記載のブロックチェーン内のトランザクション要求処理方法を実行することを可能にするように前記少なくとも1つのプロセッサによって実行される、ことを特徴とする電子デバイス。
at least one processor;
a memory communicatively connected to the at least one processor;
The memory stores instructions that are executable by the at least one processor, the instructions that the at least one processor executes the transaction request processing method in a blockchain according to any one of claims 1 to 10. An electronic device, characterized in that it is executed by said at least one processor to enable execution.
コンピュータに請求項1~10のいずれか1項に記載のブロックチェーン内のトランザクション要求処理方法を実行させるためのコンピュータ命令を格納した非瞬時コンピュータ可読記憶媒体。 A non-instantaneous computer-readable storage medium storing computer instructions for causing a computer to perform the transaction request processing method in a blockchain according to any one of claims 1-10. コンピュータにおいて、プロセッサにより実行されると、請求項1~10のいずれか1項に記載のブロックチェーン内のトランザクション要求処理方法を実現することを特徴とするプログラム。 A program characterized in that, when executed by a processor in a computer, it implements the transaction request processing method in a blockchain according to any one of claims 1 to 10.
JP2021049434A 2020-05-22 2021-03-24 Transaction request processing method, apparatus, device, medium, and program in blockchain Active JP7158522B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010443579.4 2020-05-22
CN202010443579.4A CN111640020B (en) 2020-05-22 2020-05-22 Transaction request processing method, device, equipment and medium in blockchain

Publications (2)

Publication Number Publication Date
JP2021103559A JP2021103559A (en) 2021-07-15
JP7158522B2 true JP7158522B2 (en) 2022-10-21

Family

ID=72331530

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021049434A Active JP7158522B2 (en) 2020-05-22 2021-03-24 Transaction request processing method, apparatus, device, medium, and program in blockchain

Country Status (5)

Country Link
US (1) US11769125B2 (en)
EP (1) EP3832574A3 (en)
JP (1) JP7158522B2 (en)
KR (1) KR102620191B1 (en)
CN (1) CN111640020B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112764887B (en) * 2021-01-15 2023-10-13 北京百度网讯科技有限公司 Method, device, equipment and storage medium for constructing transaction request
CN113434264B (en) * 2021-07-14 2022-08-05 上海浦东发展银行股份有限公司 Intelligent processing method, device, equipment and storage medium for task components
CN115617806B (en) * 2022-10-31 2023-07-04 哈尔滨工业大学(深圳) Block packing method and device, electronic equipment and storage medium
CN115604354B (en) * 2022-12-09 2023-03-28 北京百度网讯科技有限公司 Transaction processing method, device and equipment based on block chain and storage medium
CN115952237B (en) * 2023-01-28 2023-06-09 北京星途探索科技有限公司 Multi-terminal data fusion system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170212781A1 (en) 2016-01-26 2017-07-27 International Business Machines Corporation Parallel execution of blockchain transactions
WO2019072303A2 (en) 2018-12-28 2019-04-18 Alibaba Group Holding Limited Parallel execution of transactions in a blockchain network

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7509370B1 (en) * 2008-05-15 2009-03-24 International Business Machines Corporation Method for optimizing parallel processing of backend transactions by prioritizing related transactions
US10291627B2 (en) * 2016-10-17 2019-05-14 Arm Ltd. Blockchain mining using trusted nodes
US20180158034A1 (en) * 2016-12-07 2018-06-07 International Business Machines Corporation Dynamic reordering of blockchain transactions to optimize performance and scalability
US10679210B2 (en) * 2017-06-26 2020-06-09 International Business Machines Corporation Blockchain transaction commitment ordering
WO2019005098A1 (en) * 2017-06-30 2019-01-03 Go Logic Decision Time, Llc Methods and systems of assertional projective simulation
CN107688999B (en) 2017-08-11 2020-11-13 杭州溪塔科技有限公司 Block chain-based parallel transaction execution method
US10873625B2 (en) * 2018-02-26 2020-12-22 International Business Machines Corpora ! Ion Service management for the infrastructure of blockchain networks
CN109166037B (en) * 2018-07-25 2022-01-25 上海魅联信息技术有限公司 Consensus method of block chains
CN109214795A (en) 2018-09-18 2019-01-15 北京物链互联科技有限公司 A kind of block chain mixing common recognition method based on DAG algorithm
CN109472566B (en) * 2018-09-26 2023-09-29 平安科技(深圳)有限公司 Block dynamic generation method, device, computer equipment and storage medium
CN109492566B (en) * 2018-10-31 2022-09-16 奇瑞汽车股份有限公司 Lane position information acquisition method, device and storage medium
US20220101318A1 (en) 2019-01-08 2022-03-31 Jiheng ZHANG Transaction Assignment Method and Apparatus Based on Structured Directed Acyclic Graph
JP6955026B2 (en) * 2019-03-28 2021-10-27 アドバンスド ニュー テクノロジーズ カンパニー リミテッド Systems and methods for parallel processing blockchain transactions
US11249985B2 (en) * 2019-06-15 2022-02-15 Facebook, Inc. Scalable, secure, efficient, and adaptable distributed digital ledger transaction network
CN110619582B (en) 2019-09-18 2023-07-14 深圳前海微众银行股份有限公司 Block chain transaction method, device, equipment and computer storage medium
CN110806923B (en) * 2019-10-29 2023-02-24 百度在线网络技术(北京)有限公司 Parallel processing method and device for block chain tasks, electronic equipment and medium
CN111147242B (en) * 2019-12-31 2023-10-17 百度在线网络技术(北京)有限公司 Block generation method, device, electronic equipment and storage medium
CN111506783B (en) * 2020-04-08 2023-12-22 百度在线网络技术(北京)有限公司 Transaction request processing method, device, equipment and medium in blockchain
CN111597077B (en) * 2020-05-13 2022-04-29 腾讯科技(深圳)有限公司 Data processing method, data processing device, computer equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170212781A1 (en) 2016-01-26 2017-07-27 International Business Machines Corporation Parallel execution of blockchain transactions
WO2019072303A2 (en) 2018-12-28 2019-04-18 Alibaba Group Holding Limited Parallel execution of transactions in a blockchain network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
アンドレアス・M・アントノプロス,ビットコインとブロックチェーン,第1版,日本,NTT出版株式会社,2018年04月18日,第12、44-45頁,ISBN:978-4-7571-0375-7

Also Published As

Publication number Publication date
US20210209567A1 (en) 2021-07-08
CN111640020B (en) 2023-09-19
JP2021103559A (en) 2021-07-15
EP3832574A3 (en) 2021-09-15
US11769125B2 (en) 2023-09-26
EP3832574A2 (en) 2021-06-09
KR102620191B1 (en) 2024-01-03
KR20210040299A (en) 2021-04-13
CN111640020A (en) 2020-09-08

Similar Documents

Publication Publication Date Title
JP7158522B2 (en) Transaction request processing method, apparatus, device, medium, and program in blockchain
Wang et al. {GNNAdvisor}: An adaptive and efficient runtime system for {GNN} acceleration on {GPUs}
KR102482122B1 (en) Method for processing tasks in paralall, device and storage medium
Liu et al. PMAX: Tenant placement in multitenant databases for profit maximization
JP7254120B2 (en) Blockchain payment processing method, device, device and medium
JP7266629B2 (en) Blockchain transaction request processing method, device, equipment, storage medium, and program
Cong et al. Developing user perceived value based pricing models for cloud markets
US9692811B1 (en) Optimization of application parameters
US20130219068A1 (en) Predicting datacenter performance to improve provisioning
CA3036879A1 (en) Integrated solution techniques for security constrained unit commitment problem
EP3872728A1 (en) Method and apparatus for processing transaction in blockchain, device and medium
CN105359057A (en) Setting computer parameters to operate the power supply within a range based on a peak power efficiency of the power supply
Tanaka et al. Strategy-proof pricing for cloud service composition
EP3867829A1 (en) Parcelled quantum resources
CN115698958A (en) Power-performance based system management
US8473497B2 (en) Method and system for limiting share of voice of individual users
CN109412865A (en) A kind of virtual network resource allocation method, system and electronic equipment
CN108572787A (en) A kind of method and device that data are stored, read
CN110570310B (en) Block chain transfer method and consensus realization method, device, equipment and medium
CN108701062A (en) Mitigate laod unbalance by layering capabilities balance
Yang et al. Tear Up the Bubble Boom: Lessons Learned From a Deep Learning Research and Development Cluster
CN102063289A (en) Method and estimator for estimating thread-level speculative execution capability of serial program
Abdelkader et al. Commodity resource pricing in dynamic computational grids
Roughgarden Algorithmic game theory: Some greatest hits and future directions
Mahgoub Performance and Cost Optimization for Distributed Cloud-Native Systems

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210324

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220511

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220601

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220830

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20220927

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221011

R150 Certificate of patent or registration of utility model

Ref document number: 7158522

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150