fix: correct import of normalize_transaction_data from rpc.utils
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Blockchain Synchronization Verification / sync-verification (push) Has been cancelled
Coverage Phase 1 (70% Target) / test-coverage-70 (push) Has been cancelled
Coverage Phase 2 (85% Target) / test-coverage-85 (push) Has been cancelled
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Has been cancelled
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Has been cancelled
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Has been cancelled
Cross-Chain Functionality Tests / aggregate-results (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Chain Island Architecture Tests / test-multi-chain-island (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Blockchain Synchronization Verification / sync-verification (push) Has been cancelled
Coverage Phase 1 (70% Target) / test-coverage-70 (push) Has been cancelled
Coverage Phase 2 (85% Target) / test-coverage-85 (push) Has been cancelled
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Has been cancelled
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Has been cancelled
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Has been cancelled
Cross-Chain Functionality Tests / aggregate-results (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Chain Island Architecture Tests / test-multi-chain-island (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
This commit is contained in:
@@ -157,7 +157,7 @@ class BlockchainNode:
|
|||||||
|
|
||||||
async def process_txs():
|
async def process_txs():
|
||||||
from .mempool import get_mempool
|
from .mempool import get_mempool
|
||||||
from .rpc.router import _normalize_transaction_data
|
from .rpc.utils import normalize_transaction_data
|
||||||
mempool = get_mempool()
|
mempool = get_mempool()
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
@@ -167,7 +167,7 @@ class BlockchainNode:
|
|||||||
tx_data = json.loads(tx_data)
|
tx_data = json.loads(tx_data)
|
||||||
chain_id = tx_data.get("chain_id", settings.chain_id)
|
chain_id = tx_data.get("chain_id", settings.chain_id)
|
||||||
# Normalize transaction data to ensure type field is preserved
|
# Normalize transaction data to ensure type field is preserved
|
||||||
tx_data = _normalize_transaction_data(tx_data, chain_id)
|
tx_data = normalize_transaction_data(tx_data, chain_id)
|
||||||
mempool.add(tx_data, chain_id=chain_id)
|
mempool.add(tx_data, chain_id=chain_id)
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logger.error(f"Error processing transaction from gossip: {exc}")
|
logger.error(f"Error processing transaction from gossip: {exc}")
|
||||||
|
|||||||
Reference in New Issue
Block a user