hyperledger-archives / sawtooth-sdk-go

https://wiki.hyperledger.org/display/sawtooth
Apache License 2.0
28 stars 40 forks source link

No response from validator when submitting golang batchlist #10

Closed danielcooperxyz closed 6 years ago

danielcooperxyz commented 6 years ago

I have an issue where the validator silently ignores my batch list. Is this is an issue with the batchlist / signing that the sdk produces?

danielcooperxyz commented 6 years ago

Looks like an issue in the serialisation of the protobuf batch. Possibly related to the recent change in generation of protobuf files?

The below is output by the golang sdk, and the python sdk reports an additional char when attempting to deserialise. RuntimeWarning: Unexpected end-group tag: Not all data was converted

b'batches:<header:"signer_public_key:\\"021b4bc864eba3ed5cebbfd6ec336f13b2c0bb34cda48e254ae9f31e236f8cd8c9\\" transaction_ids:\\"fed61d8ce9c9b7a1d77919fc262eadeafe23027286fe01abfca0c92a36900db3\\" " header_signature:"505b372b836f0e5c1081e8cde08786b3774dba359a9b41d9532dafbce87da186" transactions:<header:"batcher_public_key:\\"021b4bc864eba3ed5cebbfd6ec336f13b2c0bb34cda48e254ae9f31e236f8cd8c9\\" family_name:\\"xo\\" family_version:\\"1.0\\" inputs:\\"5b73496c1b31ccbbd5c4a1ec8e45be3632e5d7189eac28f4b3b1d3707ba107a390bc72\\" nonce:\\"UKxKfgFVhmQAoXfP\\" outputs:\\"5b73496c1b31ccbbd5c4a1ec8e45be3632e5d7189eac28f4b3b1d3707ba107a390bc72\\" payload_sha512:\\"2136ddec0d82331a3bd417348fe1286f60c6d702d919149431b83a2268a93b910812f4861c1ecdafadc07b6b11c5f1bb0a3cb1564218492c936bdf4bb8357667\\" signer_public_key:\\"021b4bc864eba3ed5cebbfd6ec336f13b2c0bb34cda48e254ae9f31e236f8cd8c9\\" " header_signature:"fed61d8ce9c9b7a1d77919fc262eadeafe23027286fe01abfca0c92a36900db3" payload:"dGVzdGluZ19uZXcsY3JlYXRlLA==" > > '

danielcooperxyz commented 6 years ago

Closing as posted on jira