-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PFB results in panic: UnmarshalJSON cannot decode empty bytes #1363
Comments
We currently suspect that the GasPerBlobByte param was not defined in the genesis file for the current iteration of the Arabica testnet. |
if we just didn't set the param, then the safest quickest thing in this case (single validator node on arabica), would be to hardfork and change the param manually via an upgrade handler esque script either that, or we submit a proposal to update it via gov. iirc, we should be able to push a vote through that chain very quickly |
@Bidon15 confirmed that when Arabica was upgraded the param was not.
Are you referring to an x/upgrade plan?
Seems possible via CLI commands draft proposal and submit proposal. I'll look into preparing a proposal. What are the downsides to creating a new genesis file with the param populated and starting arabica-5 / shutting down arabica-4? |
we can hack it by just including a script in the binary then switch the only validator with that binary.
that's also a very good option!! |
Options:
|
@sysrex we explored option 2 with a legacy governance proposal: {
"title":"Parameter change: initialize gas_per_blob_byte",
"description":" set the gas_per_blob_byte param to 8",
"changes":[
{
"subspace":"blob",
"key":"gas_per_blob_byte",
"value":"8"
}
],
"deposit":"1000utia"
} We submitted the governance proposal but it failed because we're trying to initialize a parameter that hasn't been registered yet. Ref:
So we're going to try option 1 now. |
We expect this to be resolved by deployment of arabica-5 which is scheduled for tomorrow morning. |
Submitting PFBs on arabica-5 appears to work. $ curl -X POST -d '{"namespace_id": "0c204d39600fddd3",
"data": "f1f20ca8007e910a3bf8b2e61da0f26bca07ef78717a6ea54165f5",
"gas_limit": 140000, "fee": 2000}' http://localhost:26659/submit_pfb Output: {
"height": 10573,
"txhash": "E2CD12457D9263C98629B018C3F7C7D68B779FC90EA539462B94EEBB6D7191B3",
"data": "122A0A282F63656C65737469612E626C6F622E76312E4D7367506179466F72426C6F6273526573706F6E7365",
"raw_log": "[{\"msg_index\":0,\"events\":[{\"type\":\"celestia.blob.v1.EventPayForBlobs\",\"attributes\":[{\"key\":\"blob_size\",\"value\":\"1\"},{\"key\":\"namespace_ids\",\"value\":\"[\\\"DCBNOWAP3dM=\\\"]\"},{\"key\":\"signer\",\"value\":\"\\\"celestia1vdjkcetnw35kzvtv89ckvepcdpcx6mr2xd4nwur8dp6hydryxph8xdtyxdsnsumrwaekxumtwaksaphpv9\\\"\"}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/celestia.blob.v1.MsgPayForBlobs\"}]}]}]",
"logs": [
{
"msg_index": 0,
"events": [
{
"type": "celestia.blob.v1.EventPayForBlobs",
"attributes": [
{
"key": "blob_size",
"value": "1"
},
{
"key": "namespace_ids",
"value": "[\"DCBNOWAP3dM=\"]"
},
{
"key": "signer",
"value": "\"celestia1vdjkcetnw35kzvtv89ckvepcdpcx6mr2xd4nwur8dp6hydryxph8xdtyxdsnsumrwaekxumtwaksaphpv9\""
}
]
},
{
"type": "message",
"attributes": [
{
"key": "action",
"value": "/celestia.blob.v1.MsgPayForBlobs"
}
]
}
]
}
],
"gas_wanted": 140000,
"gas_used": 76252,
"events": [
{
"type": "coin_spent",
"attributes": [
{
"key": "c3BlbmRlcg==",
"value": "Y2VsZXN0aWExbDlxZmQ4aHBtbGozazdwZ2h1cjRkMG5zNWQzYThzY3dzY3Nrd20=",
"index": true
},
{
"key": "YW1vdW50",
"value": "MjAwMHV0aWE=",
"index": true
}
]
},
{
"type": "coin_received",
"attributes": [
{
"key": "cmVjZWl2ZXI=",
"value": "Y2VsZXN0aWExN3hwZnZha20yYW1nOTYyeWxzNmY4NHoza2VsbDhjNWxwbmpzM3M=",
"index": true
},
{
"key": "YW1vdW50",
"value": "MjAwMHV0aWE=",
"index": true
}
]
},
{
"type": "transfer",
"attributes": [
{
"key": "cmVjaXBpZW50",
"value": "Y2VsZXN0aWExN3hwZnZha20yYW1nOTYyeWxzNmY4NHoza2VsbDhjNWxwbmpzM3M=",
"index": true
},
{
"key": "c2VuZGVy",
"value": "Y2VsZXN0aWExbDlxZmQ4aHBtbGozazdwZ2h1cjRkMG5zNWQzYThzY3dzY3Nrd20=",
"index": true
},
{
"key": "YW1vdW50",
"value": "MjAwMHV0aWE=",
"index": true
}
]
},
{
"type": "message",
"attributes": [
{
"key": "c2VuZGVy",
"value": "Y2VsZXN0aWExbDlxZmQ4aHBtbGozazdwZ2h1cjRkMG5zNWQzYThzY3dzY3Nrd20=",
"index": true
}
]
},
{
"type": "tx",
"attributes": [
{
"key": "ZmVl",
"value": "MjAwMHV0aWE=",
"index": true
},
{
"key": "ZmVlX3BheWVy",
"value": "Y2VsZXN0aWExbDlxZmQ4aHBtbGozazdwZ2h1cjRkMG5zNWQzYThzY3dzY3Nrd20=",
"index": true
}
]
},
{
"type": "tx",
"attributes": [
{
"key": "YWNjX3NlcQ==",
"value": "Y2VsZXN0aWExbDlxZmQ4aHBtbGozazdwZ2h1cjRkMG5zNWQzYThzY3dzY3Nrd20vMA==",
"index": true
}
]
},
{
"type": "tx",
"attributes": [
{
"key": "c2lnbmF0dXJl",
"value": "eml2QnpZSy9mUWEwbklLUURBYzF2djVKZFNQUEFlK1RJQlJDVTd5dElCd2xpUGxRaVJLNFhKZUVoNXBxdWtaU3JTOHlsOVN4UUZXTWM0b293SFkySEE9PQ==",
"index": true
}
]
},
{
"type": "message",
"attributes": [
{
"key": "YWN0aW9u",
"value": "L2NlbGVzdGlhLmJsb2IudjEuTXNnUGF5Rm9yQmxvYnM=",
"index": true
}
]
},
{
"type": "celestia.blob.v1.EventPayForBlobs",
"attributes": [
{
"key": "YmxvYl9zaXpl",
"value": "MQ==",
"index": true
},
{
"key": "bmFtZXNwYWNlX2lkcw==",
"value": "WyJEQ0JOT1dBUDNkTT0iXQ==",
"index": true
},
{
"key": "c2lnbmVy",
"value": "ImNlbGVzdGlhMXZkamtjZXRudzM1a3p2dHY4OWNrdmVwY2RwY3g2bXIyeGQ0bnd1cjhkcDZoeWRyeXhwaDh4ZHR5eGRzbnN1bXJ3YWVreHVtdHdha3NhcGhwdjki",
"index": true
}
]
}
]
} Query the data that got posted:
|
Summary of Bug
Originally reported by @renaynay
Version
https://github.com/celestiaorg/celestia-app/releases/tag/v0.12.0-rc6
Steps to Reproduce
Submit a PFB on Arabica with
The text was updated successfully, but these errors were encountered: