Comments (3)
原因是export方式backup的时候,是只把指定高度之前(含指定高度)的交易复制出来
而最后处理system config的时候,是倒着从最新修改system config的交易往前处理的
当最新修改system config的交易所在的块高超过backup指定的高度时,就会找不到对应的utxo交易。
cldi> get sc
{
"admin": "0x9bab5858df4a9e84ff3958884a01a4fce5e07edb",
"admin_pre_hash": "0xef11c367277a01a904321e04cf99d3a04cd0c5a4153eead4847544ac19f16d09",
"block_interval": 3,
"block_interval_pre_hash": "0x26984e8b8ba083c7fcebe6ac69f34321e140ea174a61a79703fa3cdf56a59262",
"block_limit": 100,
"block_limit_pre_hash": "0x000000000000000000000000000000000000000000000000000000000000000000",
"chain_id": "0xf43b00f1e0d0b3b5a7c5692f622aa550f80612c3a8b73eec436cb02c1e616abe",
"chain_id_pre_hash": "0x000000000000000000000000000000000000000000000000000000000000000000",
"emergency_brake": false,
"emergency_brake_pre_hash": "0x1749f22364eaaffc956f0e5bea6030737f26469df3028b6babe126f8c3bee9df",
"quota_limit": 1073741824,
"quota_limit_pre_hash": "0xab94ea1013476d801595e08304723e649c851e63ca0a23269a92f9031bbaf962",
"validators": [
"0xb73685cc5df9c767db9f08555b3e11adf9c782fcc7223f8eb46d625b27a2e9989c945ab10ed0696516fab8c8e72cc286",
"0x81679c8cb513dea4c93303d89cbf465ab35a7cef326313922377c97f3e4e59c439d03dfd42fe7fd9733b87f7c550c71a",
"0x887fd475b093c8cea492f02f3a265e054854c9be13ae70c85215d8ea738e2cdfc2a5f61b316c3a14a62e410d1f4d6b2a",
"0x83c11758d52ff585da6418eb9ecce1ea4d96c0544724eb7c496f1fdcc9694d53ef0e514b6bdf478efd88237ffa697b02",
"0x8ae23bdbe2aec1c33ae24f81927074a7fef17baac9e97b283bcd09fa2c148f0b709de75c8cd014278286c4d6eeca9a4c"
],
"validators_pre_hash": "0xdd253dd484caff1ff1e4999a89eb0bc6d986473d6da773f7ef5d3cba5c940225",
"version": 0,
"version_pre_hash": "0x000000000000000000000000000000000000000000000000000000000000000000"
}
cldi> get tx 0xdd253dd484caff1ff1e4999a89eb0bc6d986473d6da773f7ef5d3cba5c940225
{
"height": 974,
"index": 0,
"transaction": {
"transaction": {
"lock_id": 1004,
"output": "0xb73685cc5df9c767db9f08555b3e11adf9c782fcc7223f8eb46d625b27a2e9989c945ab10ed0696516fab8c8e72cc28681679c8cb513dea4c93303d89cbf465ab35a7cef326313922377c97f3e4e59c439d03dfd42fe7fd9733b87f7c550c71a887fd475b093c8cea492f02f3a265e054854c9be13ae70c85215d8ea738e2cdfc2a5f61b316c3a14a62e410d1f4d6b2a83c11758d52ff585da6418eb9ecce1ea4d96c0544724eb7c496f1fdcc9694d53ef0e514b6bdf478efd88237ffa697b028ae23bdbe2aec1c33ae24f81927074a7fef17baac9e97b283bcd09fa2c148f0b709de75c8cd014278286c4d6eeca9a4c",
"pre_tx_hash": "0x4030a300b68fd830333f3205aa05679a49c64007c1bca7b2b9fb329746b51279",
"version": 0
},
"transaction_hash": "0xdd253dd484caff1ff1e4999a89eb0bc6d986473d6da773f7ef5d3cba5c940225",
"witnesses": [
{
"sender": "0x9bab5858df4a9e84ff3958884a01a4fce5e07edb",
"signature": "0x780c8bd04b8431ba285fe76367c6b0516379136d04242f9a4ac3790bd2d9719370624e914e72992813f511f85e107122d25d5f5c984867c416aaa919b2fb3233ee4a509a1b6e864df8d84ee8a880a0567908709bbbcf17727fd6051cc5a1abbc3dadcf754248d7cd33c7c5cf8c8410b915422cb0e00d684752756870d1c11b6b"
}
]
},
"type": "Utxo"
}
from cloud-op.
之前有一次是成功的,可能是因为前面没有加export进行过backup,然后数据没有清理。
并不是概率性的问题,而是必现的。
from cloud-op.
修改方案是export方式backup的时候,直接从创世块开始从前往后更新system config对应的数据即可。
from cloud-op.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloud-op.