fix: use BigInteger for Account nonce field
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Blockchain Synchronization Verification / sync-verification (push) Failing after 6s
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Successful in 5s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 9s
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Successful in 3s
Integration Tests / test-service-integration (push) Failing after 5s
Multi-Chain Island Architecture Tests / test-multi-chain-island (push) Successful in 5s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 7s
Node Failover Simulation / failover-test (push) Failing after 3s
P2P Network Verification / p2p-verification (push) Successful in 2s
Python Tests / test-python (push) Failing after 34s
Security Scanning / security-scan (push) Failing after 42s
Cross-Chain Functionality Tests / aggregate-results (push) Successful in 2s

- Change Account.nonce from INTEGER to BigInteger to support large values
- Part of fixing SQLite INTEGER overflow error in genesis allocations
This commit is contained in:
aitbc
2026-05-20 10:26:28 +02:00
parent 7237f48ebf
commit 0bd59a142a

View File

@@ -171,7 +171,7 @@ class Account(SQLModel, table=True):
chain_id: str = Field(primary_key=True)
address: str = Field(primary_key=True)
balance: int = Field(default=0, sa_type=BigInteger)
nonce: int = 0
nonce: int = Field(default=0, sa_type=BigInteger)
updated_at: datetime = Field(default_factory=lambda: datetime.now(timezone.utc))
class Escrow(SQLModel, table=True):