Closed rootulp closed 1 year ago
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.
via an upgrade handler esque script
Are you referring to an x/upgrade plan?
or we submit a proposal to update it via gov
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?
Are you referring to an x/upgrade plan?
we can hack it by just including a script in the binary then switch the only validator with that binary.
What are the downsides to creating a new genesis file with the param populated and starting arabica-5 / shutting down arabica-4?
that's also a very good option!!
@Bidon15 @sysrex how feasible is it to start a new chain with an updated genesis file? The field that needs to be added to genesis.json
is:
"blob": {
"params": {
"min_square_size": 1,
"max_square_size": 128,
+ "gas_per_blob_byte": 8
}
},
Options:
genesis.json
file that includes the param above.@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:
$ curl -X GET 'http://localhost:26659/namespaced_data/0c204d39600fddd3/height/10573'
{"data":["8fIMqAB+kQo7+LLmHaDya8oH73hxem6lQWX1"],"height":10573}%
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