While traversing the transactions using:
let mut concordium_client = Client::new(endpoint).await?;
let mut receiver = concordium_client.get_finalized_blocks().await?;
while let Some(v) = receiver.next().await {
let block_hash = v?.block_hash;
println!("Blockhash: {:?}", block_hash);
let transactions = concordium_client
.get_block_transaction_events(block_hash)
.await?
.response;
for result in process(transactions).await.iter() {
println!("address: {}, amount: {}", result.address, result.amount);
for device in database_connection
.prepared
.get_devices_from_account(result.address)
.await?
.iter()
{
gcloud
.send_push_notification(device, result.to_owned())
.await?;
}
}
}
I am after around 30 blocks traversed getting the following error:
Error: status: Internal, message: “h2 protocol error: error reading a body from connection: stream error received: unexpected internal error encountered”, details: , metadata: MetadataMap { headers: {} }
I am using testnet grpc as the information collector