Parallel Block Processing in Blockchain Systems

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current blockchain processing methods are inefficient, leading to delays in transaction processing due to serial processing of blocks, which results in cascading delays and high resource utilization, especially in cryptocurrency systems with large data volumes and rapid block generation.

Innovation Solution

Implementing a parallel processing method using a leader process and multiple worker processes that independently retrieve and process blocks from a blockchain, storing them in a buffer for later reporting, allowing for simultaneous processing and reduced need for exclusive locks, thereby improving processing speed and resource efficiency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If serial processing of blocks is used to ensure proper validation and ordering, then processing accuracy is maintained, but processing speed and productivity deteriorate

Engineering Contradiction:
Improveprocessing accuracyVSAvoidprocessing speed
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The blockchain processing system is segmented into multiple worker processes (e.g., 4 worker processes) that independently process different blocks in parallel. Each worker process handles a specific portion of the blockchain data, allowing simultaneous processing while maintaining validation accuracy through individual block number verification for each segment

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

A buffer mechanism serves as an intermediary between parallel worker processes and the final reporting system. The buffer stores processed blocks temporarily and enables validation of block numbers to ensure proper ordering before reporting, acting as a mediator that allows parallel processing while maintaining sequential integrity

Inventive Principle:
Principle #24Intermediary (Mediator)

2Productivity

If multiple worker processes process blocks in parallel, then productivity and processing speed improve, but device complexity and resource management difficulty increase

Engineering Contradiction:
Improveprocessing throughputVSAvoidsystem complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The buffer acts as an intermediary that simplifies resource management by providing a centralized storage location where all worker processes deposit processed blocks. This mediator approach reduces the complexity of coordinating multiple worker processes, as they independently write to the buffer without requiring complex synchronization protocols

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

Each worker process independently retrieves blocks, processes them, and stores results in the buffer without requiring coordination with other worker processes. The system provides self-service through automatic block number validation and buffering, reducing the need for complex inter-process communication and management overhead

Inventive Principle:
Principle #25Self-service

3Reliability

If exclusive locks are used to ensure data consistency during processing, then reliability is maintained, but processing speed and resource utilization deteriorate

Engineering Contradiction:
Improvedata consistencyVSAvoidresource utilization
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The system segments the blockchain data into distinct blocks that are processed independently by different worker processes. Each worker process validates and buffers specific blocks without requiring exclusive locks on the entire blockchain data, allowing parallel access to different segments while maintaining data consistency through individual block validation

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The buffer serves as an intermediary that eliminates the need for exclusive locks by providing a dedicated storage location for each worker process to deposit processed blocks. This mediator approach maintains reliability through block number validation while improving resource utilization by allowing simultaneous writes from multiple worker processes without locking conflicts

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS12149621B2Parallel block processing in blockchains
Publication Date: 2024.11.19 CIRCLE INTERNET FINANCIAL LTD
  • US12149621B2 patent drawing
  • US12149621B2 patent drawing
  • US12149621B2 patent drawing

AI summary

Certain aspects of the present disclosure provide techniques for reporting transactions in a blockchain. The method generally includes instantiating a plurality of worker processes for processing blocks from a blockchain in parallel. Each worker process is generally associated with an offset into a buffer of blocks from the blockchain to be reported to one or more computing resources. A subject block to be reported to the one or more computing resources is selected from the buffer. The subject block is generally a block inserted into the buffer by a worker process. The subject block is validated based on a block number associated with the subject block and a block number of a next block to be reported. Based on validating the subject block, the subject block is reported to the one or more computing resources, and the subject block is marked in the buffer as a reported block.