From a119dcdc333ca1ade1ee5106e55c8fe5d3c9f080 Mon Sep 17 00:00:00 2001 From: joecaswell <1626320+joecaswell@users.noreply.github.com> Date: Mon, 14 Mar 2022 16:21:40 -0700 Subject: [PATCH 1/3] add final flag to sync blocks message --- src/blockchain_sync_handler.proto | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/blockchain_sync_handler.proto b/src/blockchain_sync_handler.proto index 666056d6..6c1a4dbb 100644 --- a/src/blockchain_sync_handler.proto +++ b/src/blockchain_sync_handler.proto @@ -5,7 +5,10 @@ message blockchain_sync_hash { repeated uint64 heights = 2; } -message blockchain_sync_blocks { repeated bytes blocks = 1; } +message blockchain_sync_blocks { + repeated bytes blocks = 1; + bool final = 2; +} message blockchain_sync_req { oneof msg { From 4e1e0d97358d736ce861ef8d8d4a52eeb6ae9a4b Mon Sep 17 00:00:00 2001 From: joecaswell <1626320+joecaswell@users.noreply.github.com> Date: Mon, 14 Mar 2022 18:15:53 -0700 Subject: [PATCH 2/3] remove trailing spaces --- src/blockchain_sync_handler.proto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blockchain_sync_handler.proto b/src/blockchain_sync_handler.proto index 6c1a4dbb..e43ad017 100644 --- a/src/blockchain_sync_handler.proto +++ b/src/blockchain_sync_handler.proto @@ -5,8 +5,8 @@ message blockchain_sync_hash { repeated uint64 heights = 2; } -message blockchain_sync_blocks { - repeated bytes blocks = 1; +message blockchain_sync_blocks { + repeated bytes blocks = 1; bool final = 2; } From fd292552b07079bafd2d1049b9b0b8ea43730c8b Mon Sep 17 00:00:00 2001 From: joecaswell <1626320+joecaswell@users.noreply.github.com> Date: Mon, 14 Mar 2022 18:28:10 -0700 Subject: [PATCH 3/3] reduce indent to 2 spaces --- src/blockchain_sync_handler.proto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blockchain_sync_handler.proto b/src/blockchain_sync_handler.proto index e43ad017..df7bded1 100644 --- a/src/blockchain_sync_handler.proto +++ b/src/blockchain_sync_handler.proto @@ -6,8 +6,8 @@ message blockchain_sync_hash { } message blockchain_sync_blocks { - repeated bytes blocks = 1; - bool final = 2; + repeated bytes blocks = 1; + bool final = 2; } message blockchain_sync_req {