• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

Create a proposal as masternode,MinQuorum is 1. Is it not necessary for other master nodes to vote

JerrRoach

New member
Hello friend, there is a problem now, I use the dash test code to create 5 enable masternode, then as one of the primary node to create the proposal, the test code in nGovernanceMinQuorum is 1, now run after a period of time will appear the following tips "CSuperblock: : IsValid - ERROR: Block invalid, too what superblock payments"
I like to look at CSuperblock code: : IsValid nOutputs = 2, nPayments = 3, that is to say the proposal could be voted for itself, but other master node have not received this information, don't think the proposal for the super block.Want to know if there is any logic in the dash source code to create your own proposal as the master node and vote for it.thank you
 
debug.log as below
2018-07-04 11:28:02 MNGOVERNANCEOBJECTVOTE -- Received vote: CTxIn(COutPoint(289e1e98755d5e4d521a8aaac8bc6e0ea68cd77cfdc71490cb73a4a30aa5d279, 8), scriptSig=):1530703676:YES:FUNDING
2018-07-04 11:28:02 MNGOVERNANCEOBJECTVOTE -- 765d74b0eed1af2f2a89121d958bdcc95a1592dc79472b00f2783a55f4200309 new
2018-07-04 11:28:02 CGovernanceManager::ConfirmInventoryRequest inv = govobjvote 2364b5dcdcf769fb265b7e6c4115fc542de38e0aac662ed7e7045dc31c999443
2018-07-04 11:28:02 CGovernanceManager::ConfirmInventoryRequest reached end, returning true
2018-07-04 11:28:02 CGovernanceManager::ConfirmInventoryRequest inv = govobjvote a2903cfb3461e589f52ae53ef5b0728ebb2b0d16ba1fb3fc2b11ced7265fc44e
2018-07-04 11:28:02 CGovernanceManager::ConfirmInventoryRequest reached end, returning true
2018-07-04 11:28:02 CGovernanceManager::ConfirmInventoryRequest inv = govobjvote a2903cfb3461e589f52ae53ef5b0728ebb2b0d16ba1fb3fc2b11ced7265fc44e
2018-07-04 11:28:02 CGovernanceManager::ConfirmInventoryRequest reached end, returning true
2018-07-04 11:28:02 CGovernanceManager::ConfirmInventoryRequest inv = govobjvote a2903cfb3461e589f52ae53ef5b0728ebb2b0d16ba1fb3fc2b11ced7265fc44e
2018-07-04 11:28:02 CGovernanceManager::ConfirmInventoryRequest reached end, returning true
2018-07-04 11:28:02 block.vtx[0].GetValueOut() 13770000000 <= blockReward 13770000000
2018-07-04 11:28:02 CSuperblock::GetPaymentsLimit -- Valid superblock height 21600, payments max 5000000000
2018-07-04 11:28:02 block.vtx[0].GetValueOut() 13770000000 <= nSuperblockMaxValue 18770000000
2018-07-04 11:28:02 CSuperblockManager::IsSuperblockTriggered -- Start nBlockHeight = 21600
2018-07-04 11:28:02 CSuperblockManager::IsSuperblockTriggered -- vecTriggers.size() = 6
2018-07-04 11:28:02 CSuperblockManager::IsSuperblockTriggered -- data = [["trigger",{"event_block_height":21600,"payment_amounts":"25|12.22|11.11","payment_addresses":"XnW321Dp1YEG1fNNn1LRN7y2fiRaVBe2bm|XiJFiPMzfZSQJnLfkaKV8LGFKghuz4ZJfS|XgDxwYZCcYaJepPNpTw7Y5FHLpLwY6xCFP","proposal_hashes":"a867045632a7634b510910122bf43b79c48a77a1405a5ca46a75f832dbff84d6|fa1a4d71dff0dd219bd9c921e590021473a168c2ad9ea9041fc9b89110ee991c|b2a34a000d6ced3ba52025f0cf37d9a71996e80b163311fa8f942aab8b822061","type":2}]]
2018-07-04 11:28:02 CSuperblockManager::IsSuperblockTriggered -- fCacheFunding = true, returning true
2018-07-04 11:28:02 CSuperblock::IsValid nOutputs = 2, nPayments = 3, strData = 5b5b2274726967676572222c7b226576656e745f626c6f636b5f686569676874223a32313630302c227061796d656e745f616d6f756e7473223a2232357c31322e32327c31312e3131222c227061796d656e745f616464726573736573223a22586e5733323144703159454731664e4e6e314c524e3779326669526156426532626d7c58694a4669504d7a665a53514a6e4c666b614b56384c47464b6768757a345a4a66537c5867447877595a436359614a6570504e70547737593546484c704c77593678434650222c2270726f706f73616c5f686173686573223a22613836373034353633326137363334623531303931303132326266343362373963343861373761313430356135636134366137356638333264626666383464367c666131613464373164666630646432313962643963393231653539303032313437336131363863326164396561393034316663396238393131306565393931637c62326133346130303064366365643362613532303235663063663337643961373139393665383062313633333131666138663934326161623862383232303631222c2274797065223a327d5d5d
2018-07-04 11:28:02 CSuperblock::IsValid -- ERROR: Block invalid, too few superblock payments
2018-07-04 11:28:02 IsBlockValueValid -- ERROR: Invalid superblock detected at height 21600: CTransaction(hash=666e5b4d4e, ver=102, vin.size=1, vout.size=2, nLockTime=0)
CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000, 4294967295), coinbase 0260540101)
CTxOut(nValue=110.16000000, scriptPubKey=210375996de175460b281adcf92cba, nUnlockedHeight=0, vReserve=73616665)
CTxOut(nValue=27.54000000, scriptPubKey=76a9148196455993148ccb46c04f1d, nUnlockedHeight=0, vReserve=73616665)
2018-07-04 11:28:02 ERROR: ConnectBlock(SAFE): invalid superblock detected at height 21600
2018-07-04 11:28:02 InvalidChainFound: invalid block=0009292e715a5c27c3cc85350ca9290a4b617d13c0ddb5142d3e06b957e590e6 height=21600 log2_work=26.39881 date=2018-07-04 11:27:41
2018-07-04 11:28:02 InvalidChainFound: current best=000cdbb6045522178d73d2f3f4ef578f30f457db2e0ba9c64a21c2021eefe93c height=21599 log2_work=26.398744 date=2018-07-04 11:27:17
2018-07-04 11:28:02 ERROR: ConnectTip(): ConnectBlock 0009292e715a5c27c3cc85350ca9290a4b617d13c0ddb5142d3e06b957e590e6 failed
2018-07-04 11:28:02 InvalidChainFound: invalid block=0009292e715a5c27c3cc85350ca9290a4b617d13c0ddb5142d3e06b957e590e6 height=21600 log2_work=26.39881 date=2018-07-04 11:27:41
2018-07-04 11:28:02 InvalidChainFound: current best=000cdbb6045522178d73d2f3f4ef578f30f457db2e0ba9c64a21c2021eefe93c height=21599 log2_work=26.398744 date=2018-07-04 11:27:17
2018-07-04 11:28:02 ProcessNewBlock : ACCEPTED
2018-07-04 11:28:02 MNGOVERNANCEOBJECTVOTE -- Received vote: CTxIn(COutPoint(2bf1c0b3115e835c49eecacfddc1d01df58f99b8965396f248192a7f4b842cd1, 5), scriptSig=):1530703675:YES:FUNDING
2018-07-04 11:28:02 MNGOVERNANCEOBJECTVOTE -- e8c515f248547396a442d302993f64b83cb9d8dcab0b719f0e495b4e7d494ec9 new
2018-07-04 11:28:02 MNGOVERNANCEOBJECTVOTE -- Received vote: CTxIn(COutPoint(289e1e98755d5e4d521a8aaac8bc6e0ea68cd77cfdc71490cb73a4a30aa5d279, 6), scriptSig=):1530703676:YES:FUNDING
2018-07-04 11:28:02 MNGOVERNANCEOBJECTVOTE -- 7afa476a7fd209dcaf521fc11b585d42cdf2ac95fdab83492ab863aeabb36fe4 new
2018-07-04 11:28:02 CGovernanceManager::ConfirmInventoryRequest inv = govobjvote a2903cfb3461e589f52ae53ef5b0728ebb2b0d16ba1fb3fc2b11ced7265fc44e
2018-07-04 11:28:02 CGovernanceManager::ConfirmInventoryRequest reached end, returning true
 
Back
Top