diff --git a/documentation.swagger.json b/documentation.swagger.json index bcdf208..8fa2d02 100644 --- a/documentation.swagger.json +++ b/documentation.swagger.json @@ -728,6 +728,12 @@ "type": "string", "format": "int64" }, + "SkippedBlocksmiths": { + "type": "array", + "items": { + "$ref": "#/definitions/modelSkippedBlocksmith" + } + }, "TotalReceipts": { "type": "string", "format": "int64" @@ -1452,6 +1458,27 @@ } } }, + "modelSkippedBlocksmith": { + "type": "object", + "properties": { + "BlockHeight": { + "type": "integer", + "format": "int64" + }, + "BlocksmithIndex": { + "type": "integer", + "format": "int32" + }, + "BlocksmithPublicKey": { + "type": "string", + "format": "byte" + }, + "POPChange": { + "type": "string", + "format": "int64" + } + } + }, "modelStorageInformation": { "type": "object", "properties": { @@ -1618,19 +1645,5 @@ } } } - }, - "x-stream-definitions": { - "modelGetNodeHardwareResponse": { - "properties": { - "error": { - "$ref": "#/definitions/runtimeStreamError" - }, - "result": { - "$ref": "#/definitions/modelGetNodeHardwareResponse" - } - }, - "title": "Stream result of modelGetNodeHardwareResponse", - "type": "object" - } } } diff --git a/model/block.proto b/model/block.proto index 9b73e43..d865b70 100644 --- a/model/block.proto +++ b/model/block.proto @@ -7,6 +7,7 @@ import "model/transaction.proto"; import "model/batchReceipt.proto"; import "model/receipt.proto"; import "model/publishedReceipt.proto"; +import "model/skippedBlocksmith.proto"; // Block represent the block data structure stored in the database message Block { @@ -36,6 +37,7 @@ message BlockExtendedInfo { int64 ReceiptValue = 3 [ jstype = JS_STRING ]; string BlocksmithAccountAddress = 4; int64 PopChange = 5 [ jstype = JS_STRING ]; + repeated SkippedBlocksmith SkippedBlocksmiths = 6; } // GetBlockRequest create request for single block diff --git a/model/skippedBlocksmith.proto b/model/skippedBlocksmith.proto new file mode 100644 index 0000000..339fb4a --- /dev/null +++ b/model/skippedBlocksmith.proto @@ -0,0 +1,12 @@ +syntax="proto3"; + +package model; + +option go_package = "github.com/zoobc/zoobc-core/common/model"; + +message SkippedBlocksmith { + bytes BlocksmithPublicKey = 1; + int64 POPChange = 2 [jstype = JS_STRING]; + uint32 BlockHeight = 3; + int32 BlocksmithIndex = 4; +}