-
Notifications
You must be signed in to change notification settings - Fork 343
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
Commit signatures may be empty/missing #704
Comments
Digging in more, it seems this happens when we get latest commit (non-canonical, not all sigs may have arrives). It will often have some "absent" fields. If Note that timestamp is not empty or "", but rather the "0" time: I will allow empty arrays and add special handling for this timestamp. Hopefully they have a better api soon.
[
{
"block_id_flag": 1,
"validator_address": "",
"timestamp": "0001-01-01T00:00:00Z",
"signature": null
},
{
"block_id_flag": 2,
"validator_address": "341CEE7B1BA35C23217A972885249913E7BB9FB3",
"timestamp": "2021-03-11T23:32:15.528027253Z",
"signature": "/ePTRC4jngJEUpVLcKx+Nr2r866qC25WCgOCXHQDHYFarC/tMkOtbVEQpjpikiTLZFaxmWv9hIXRUkQ9mY7BCA=="
},
{
"block_id_flag": 2,
"validator_address": "51341FF26563FC48BE4CC288BCC9A7EE545FA640",
"timestamp": "2021-03-11T23:32:15.5472272Z",
"signature": "zp7anVoXoPKJ17L/1jGUgJqySNmlK673vcGe7zvWqCkfgERKIL4PzDvmwtRi0BYADb9rH/U7N/H6vHuOUI1/DQ=="
},
{
"block_id_flag": 2,
"validator_address": "87E6508A07E5F8BEA157162857C1DC3FA8AFC41B",
"timestamp": "2021-03-11T23:32:15.543324576Z",
"signature": "rZ6bqWE9IobtYEVeIZEs+szZBpJo/DJXFqNl/73FLynSywjWscgtpkyugrZBojiL0+apQ8i58A5NKu5J4bPhDQ=="
},
{
"block_id_flag": 2,
"validator_address": "9830095087C6FD7E15DDCDB2CB7E544B86C81BD3",
"timestamp": "2021-03-11T23:32:15.542127538Z",
"signature": "LBbWFHRAiog2uAmUVeoaWZwNCagZoTIgUMFIpKNAR2IckPBHfcfmTKQ3oxUwvaH2Assy/lNdptulY04SSmuEDg=="
},
{
"block_id_flag": 1,
"validator_address": "",
"timestamp": "0001-01-01T00:00:00Z",
"signature": null
},
{
"block_id_flag": 2,
"validator_address": "E2E5431899A94672CC9850157C14BC67A6A5EAF7",
"timestamp": "2021-03-11T23:32:15.550503887Z",
"signature": "YeXxk7KsHKi9X1lMLjfuXldDL8MOVIfnekS2tCnn85yPAovgQmgFoC+AogZ1E4MKZ50AMgHHSDPu2avPFEA9Cg=="
}
] |
Done in #705 and released as 0.24.1 |
At least some of the problem was due to a bug in the The solution in #705 combined with
This is due to the following check: https://github.com/cometbft/cometbft/blob/main/types/block.go#L662 I suggest no special treatment as implemented here: |
Tendermint rpc can return an empty field here: https://github.com/cosmos/cosmjs/blob/main/packages/tendermint-rpc/src/tendermint34/adaptors/v0-34/responses.ts#L421
I got the following error querying musselnet:
Please make it optional (and maybe investigate a bit more first if you wish, there may be other aspects)
The text was updated successfully, but these errors were encountered: