From c69b5c8bf5a0182d64a5c3dfdaa2b87e66ba942d Mon Sep 17 00:00:00 2001 From: Sorin Stanculeanu Date: Mon, 14 Oct 2024 13:17:10 +0300 Subject: [PATCH 1/4] extend ShardData --- data/block/metaBlock.pb.go | 335 ++++++++++++++++++++++----------- data/block/metaBlock.proto | 30 +-- data/block/shardDataHandler.go | 22 +++ data/interface.go | 4 + 4 files changed, 270 insertions(+), 121 deletions(-) diff --git a/data/block/metaBlock.pb.go b/data/block/metaBlock.pb.go index 47176564..6cd503a6 100644 --- a/data/block/metaBlock.pb.go +++ b/data/block/metaBlock.pb.go @@ -159,6 +159,8 @@ type ShardData struct { LastIncludedMetaNonce uint64 `protobuf:"varint,13,opt,name=LastIncludedMetaNonce,proto3" json:"lastIncludedMetaNonce"` ShardID uint32 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"shardID"` TxCount uint32 `protobuf:"varint,7,opt,name=TxCount,proto3" json:"txCount"` + CurrentPubKeysBitmap []byte `protobuf:"bytes,15,opt,name=CurrentPubKeysBitmap,proto3" json:"currentPubKeysBitmap,omitempty"` + CurrentSignature []byte `protobuf:"bytes,16,opt,name=CurrentSignature,proto3" json:"currentSignature,omitempty"` } func (m *ShardData) Reset() { *m = ShardData{} } @@ -287,6 +289,20 @@ func (m *ShardData) GetTxCount() uint32 { return 0 } +func (m *ShardData) GetCurrentPubKeysBitmap() []byte { + if m != nil { + return m.CurrentPubKeysBitmap + } + return nil +} + +func (m *ShardData) GetCurrentSignature() []byte { + if m != nil { + return m.CurrentSignature + } + return nil +} + // EpochStartShardData hold the last finalized headers hash and state root hash type EpochStartShardData struct { ShardID uint32 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"shardID"` @@ -796,113 +812,116 @@ func init() { func init() { proto.RegisterFile("metaBlock.proto", fileDescriptor_87b91ab531130b2b) } var fileDescriptor_87b91ab531130b2b = []byte{ - // 1692 bytes of a gzipped FileDescriptorProto + // 1735 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 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xf7, 0x14, 0x68, 0x45, 0x98, 0xe0, 0x75, 0xa0, 0x17, 0x38, 0x3d, 0xa6, 0xa6, 0x86, 0x65, - 0x90, 0x38, 0x35, 0x03, 0x40, 0x0d, 0x71, 0xf8, 0x4c, 0x02, 0x8b, 0x7b, 0x9a, 0xe6, 0xf6, 0x5c, - 0x03, 0x31, 0xac, 0x1f, 0x62, 0xec, 0xc8, 0xf3, 0xdc, 0xf9, 0x99, 0xef, 0x29, 0x37, 0xd1, 0xb0, - 0x68, 0x1a, 0x35, 0x37, 0x7a, 0x3c, 0xfc, 0xaf, 0x04, 0x4a, 0x07, 0xf8, 0x02, 0x1b, 0xd4, 0xc2, - 0x36, 0x0f, 0x68, 0x81, 0x07, 0xa4, 0x07, 0xdf, 0x40, 0x17, 0x05, 0xd3, 0x08, 0x67, 0xf8, 0x68, - 0xf8, 0x08, 0x2c, 0x1f, 0xbb, 0xbd, 0x26, 0x36, 0x75, 0x62, 0x76, 0x06, 0xd5, 0xe6, 0xc8, 0xc5, - 0x9a, 0xb4, 0x59, 0x0a, 0x2f, 0x80, 0x99, 0x22, 0x57, 0x53, 0xad, 0xe0, 0x63, 0xb0, 0xf2, 0x08, - 0x39, 0xac, 0x61, 0x6a, 0x86, 0xab, 0x63, 0xfd, 0x08, 0x33, 0x14, 0x7e, 0x9e, 0x12, 0xff, 0x3c, - 0x37, 0x83, 0x72, 0x37, 0xd2, 0x14, 0xd4, 0x74, 0x3b, 0xf8, 0x0b, 0x90, 0xe3, 0xf7, 0xa0, 0x71, - 0xc0, 0x09, 0xb0, 0x54, 0x2f, 0xfa, 0x9e, 0x92, 0x73, 0x42, 0x48, 0x8d, 0x65, 0x81, 0xda, 0xc9, - 0xd3, 0x7d, 0xea, 0x9a, 0x4c, 0xce, 0x25, 0x6a, 0x2c, 0x84, 0xd4, 0x58, 0xb6, 0xf1, 0x9f, 0x2c, - 0x58, 0xba, 0x6f, 0x51, 0xad, 0xdb, 0x62, 0xc8, 0x66, 0xc9, 0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e9, 0x09, 0x58, 0x3d, 0x45, 0x06, 0xd1, 0x11, 0xa3, 0x76, 0x8b, 0x21, 0xe6, 0x0c, 0x3c, 0x84, - 0xc3, 0xfc, 0xcf, 0x7d, 0x4f, 0xa9, 0x5d, 0xa4, 0x6a, 0x08, 0xfe, 0x26, 0xf8, 0x80, 0x4f, 0x40, - 0x79, 0x6c, 0x18, 0x29, 0xbf, 0x75, 0x18, 0x91, 0xa3, 0x52, 0x2a, 0xf7, 0x46, 0xa7, 0x90, 0x72, - 0xda, 0x0e, 0xa9, 0x62, 0x0d, 0x13, 0x8b, 0x39, 0x3c, 0xe2, 0x4a, 0x92, 0x63, 0x5b, 0xc0, 0xc5, - 0x1c, 0x8b, 0xfa, 0xf0, 0xb1, 0xc8, 0x41, 0x32, 0xe4, 0x44, 0x50, 0x19, 0xe3, 0x9a, 0x84, 0x62, - 0xf0, 0x00, 0x13, 0x67, 0x57, 0x81, 0xc6, 0x76, 0x40, 0x6e, 0x3f, 0x20, 0xe8, 0xc6, 0x81, 0xbc, - 0x94, 0xfc, 0xcc, 0xa1, 0x85, 0x90, 0xf8, 0x33, 0x47, 0xa4, 0x15, 0x54, 0x79, 0x8b, 0x9e, 0xb1, - 0x4b, 0x64, 0xe3, 0x53, 0x6c, 0x3b, 0x84, 0x9a, 0xf2, 0x72, 0x52, 0xe5, 0xce, 0xb0, 0x48, 0xac, - 0xf2, 0x11, 0xab, 0xd4, 0xf5, 0x70, 0xe5, 0xe3, 0xae, 0x87, 0x9f, 0x4b, 0x60, 0x75, 0x04, 0x6b, - 0x98, 0x21, 0x0b, 0xae, 0xf2, 0xc8, 0x7a, 0x41, 0x69, 0xa1, 0x54, 0x8d, 0x69, 0x04, 0x38, 0x21, - 0x98, 0x94, 0x35, 0x76, 0xed, 0xe3, 0xad, 0xb1, 0xff, 0x93, 0xc0, 0xc2, 0x01, 0xbe, 0x10, 0x93, - 0x25, 0xf3, 0x68, 0xb0, 0xef, 0x29, 0xb2, 0x3e, 0x24, 0x99, 0x46, 0x38, 0x23, 0x87, 0x8b, 0x0b, - 0xe9, 0xcd, 0xc9, 0x0b, 0x29, 0x67, 0x1e, 0xec, 0x60, 0xfb, 0x02, 0xeb, 0xf2, 0xba, 0xc0, 0x3c, - 0x11, 0x36, 0xc4, 0x3c, 0x11, 0x06, 0xff, 0x1a, 0xce, 0x27, 0x84, 0xba, 0x4e, 0x78, 0xa1, 0x9b, - 0x36, 0xa5, 0x67, 0xf2, 0x2d, 0x7e, 0x0d, 0x61, 0x74, 0x0d, 0x05, 0x49, 0x32, 0xb3, 0x8c, 0x98, - 0xa8, 0x69, 0x7e, 0xee, 0x7e, 0x26, 0x01, 0x90, 0xfc, 0xec, 0x07, 0x2b, 0xa0, 0xd4, 0x30, 0x39, - 0x8f, 0x85, 0x40, 0x39, 0x03, 0x97, 0x41, 0x39, 0x50, 0x50, 0x71, 0x27, 0x98, 0xd1, 0x11, 0x47, - 0xa5, 0x40, 0x31, 0x40, 0xff, 0x64, 0x3a, 0x0c, 0x9d, 0x13, 0xb3, 0x53, 0x9e, 0x81, 0xab, 0x00, - 0xf2, 0x56, 0x87, 0x6d, 0x51, 0x75, 0x16, 0x2e, 0x84, 0x27, 0xfc, 0x11, 0x11, 0x03, 0xeb, 0xe5, - 0x1b, 0xb0, 0x0c, 0xe6, 0x43, 0xd3, 0x08, 0xc9, 0xc2, 0x45, 0x50, 0x0c, 0x90, 0x96, 0x81, 0x82, - 0x5d, 0xad, 0x3c, 0x17, 0x03, 0x6a, 0xd0, 0x9e, 0xcf, 0x71, 0x39, 0x57, 0xff, 0xfd, 0x8b, 0x57, - 0xd5, 0xcc, 0xcb, 0x57, 0xd5, 0xcc, 0x9b, 0x57, 0x55, 0xe9, 0x5f, 0xfd, 0xaa, 0xf4, 0x45, 0xbf, - 0x2a, 0x3d, 0xef, 0x57, 0xa5, 0x17, 0xfd, 0xaa, 0xf4, 0xb2, 0x5f, 0x95, 0xbe, 0xeb, 0x57, 0xa5, - 0x1f, 0xfa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0xd4, 0xce, 0x9e, 0x1e, + 0x3a, 0x81, 0x4d, 0x95, 0x52, 0xa6, 0x46, 0x63, 0x48, 0x4f, 0x65, 0xf0, 0x1c, 0xac, 0x1e, 0x06, + 0x9e, 0x87, 0x6d, 0x3a, 0x9e, 0x03, 0xcb, 0xfc, 0xfe, 0xb7, 0xa2, 0x50, 0x53, 0x8d, 0x1c, 0xb9, + 0x10, 0x79, 0xb9, 0xf6, 0xf0, 0x6b, 0x20, 0x27, 0x78, 0x96, 0x18, 0x32, 0xe7, 0x54, 0xa3, 0x50, + 0xdb, 0x34, 0x26, 0x64, 0x02, 0xdf, 0x94, 0xdd, 0xd6, 0xef, 0x8b, 0x60, 0xe5, 0xa1, 0xeb, 0x18, + 0xfd, 0x0e, 0x45, 0x1e, 0xcd, 0xea, 0xd3, 0x1d, 0x6f, 0x42, 0x03, 0x45, 0x6e, 0xcd, 0x33, 0xa8, + 0x16, 0x27, 0x04, 0x66, 0x80, 0x1e, 0xe3, 0x59, 0x1a, 0x96, 0x6e, 0x49, 0xc3, 0x51, 0x4a, 0x95, + 0x6f, 0x49, 0xa9, 0x8f, 0xaf, 0x94, 0xfb, 0xa0, 0xac, 0x3b, 0x0e, 0xe5, 0x76, 0xf3, 0x59, 0x86, + 0x7b, 0x09, 0x26, 0x66, 0x78, 0xaa, 0x07, 0x4f, 0x40, 0xbd, 0x63, 0xf4, 0xb1, 0x19, 0x58, 0xd8, + 0x1c, 0x19, 0x03, 0x6e, 0xac, 0x45, 0xa1, 0xf6, 0xc0, 0x9f, 0x14, 0x0a, 0x2c, 0xd3, 0x96, 0xf0, + 0x67, 0x60, 0xed, 0x98, 0x78, 0x3e, 0x4d, 0x63, 0x37, 0xed, 0xe7, 0x49, 0x21, 0xfd, 0x56, 0x14, + 0x6a, 0xda, 0x45, 0x9e, 0x82, 0x40, 0x9b, 0xcf, 0xc0, 0xa8, 0x59, 0x10, 0x1f, 0x13, 0x9b, 0xf8, + 0xfd, 0x38, 0x88, 0x63,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x00, 0x79, 0xab, 0xc3, + 0x9e, 0xa8, 0x3a, 0x0f, 0x97, 0xe2, 0x13, 0xbe, 0x46, 0xc4, 0xc2, 0xa6, 0x7c, 0x0f, 0xca, 0x60, + 0x31, 0x36, 0x4d, 0x90, 0x22, 0x5c, 0x06, 0x55, 0x86, 0x74, 0x2c, 0xc4, 0x76, 0x35, 0x79, 0x21, + 0x05, 0x74, 0xd6, 0x9e, 0x2f, 0xb1, 0x5c, 0x6a, 0xfe, 0xf8, 0xe5, 0x6b, 0xb5, 0xf0, 0xea, 0xb5, + 0x5a, 0x78, 0xfb, 0x5a, 0x95, 0x7e, 0x3b, 0x54, 0xa5, 0xbf, 0x0d, 0x55, 0xe9, 0xc5, 0x50, 0x95, + 0x5e, 0x0e, 0x55, 0xe9, 0xd5, 0x50, 0x95, 0xfe, 0x33, 0x54, 0xa5, 0xff, 0x0d, 0xd5, 0xc2, 0xdb, + 0xa1, 0x2a, 0x3d, 0x7b, 0xa3, 0x16, 0x5e, 0xbe, 0x51, 0x0b, 0xaf, 0xde, 0xa8, 0x85, 0x9f, 0x17, + 0xf9, 0x6f, 0xc2, 0xdd, 0x05, 0x7e, 0x51, 0xdf, 0xfb, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x59, + 0xcb, 0x7d, 0xf1, 0x77, 0x16, 0x00, 0x00, } func (x PeerAction) String() string { @@ -1023,6 +1042,12 @@ func (this *ShardData) Equal(that interface{}) bool { if this.TxCount != that1.TxCount { return false } + if !bytes.Equal(this.CurrentPubKeysBitmap, that1.CurrentPubKeysBitmap) { + return false + } + if !bytes.Equal(this.CurrentSignature, that1.CurrentSignature) { + return false + } return true } func (this *EpochStartShardData) Equal(that interface{}) bool { @@ -1320,7 +1345,7 @@ func (this *ShardData) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 18) + s := make([]string, 0, 20) s = append(s, "&block.ShardData{") s = append(s, "HeaderHash: "+fmt.Sprintf("%#v", this.HeaderHash)+",\n") if this.ShardMiniBlockHeaders != nil { @@ -1342,6 +1367,8 @@ func (this *ShardData) GoString() string { s = append(s, "LastIncludedMetaNonce: "+fmt.Sprintf("%#v", this.LastIncludedMetaNonce)+",\n") s = append(s, "ShardID: "+fmt.Sprintf("%#v", this.ShardID)+",\n") s = append(s, "TxCount: "+fmt.Sprintf("%#v", this.TxCount)+",\n") + s = append(s, "CurrentPubKeysBitmap: "+fmt.Sprintf("%#v", this.CurrentPubKeysBitmap)+",\n") + s = append(s, "CurrentSignature: "+fmt.Sprintf("%#v", this.CurrentSignature)+",\n") s = append(s, "}") return strings.Join(s, "") } @@ -1545,6 +1572,22 @@ func (m *ShardData) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.CurrentSignature) > 0 { + i -= len(m.CurrentSignature) + copy(dAtA[i:], m.CurrentSignature) + i = encodeVarintMetaBlock(dAtA, i, uint64(len(m.CurrentSignature))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + if len(m.CurrentPubKeysBitmap) > 0 { + i -= len(m.CurrentPubKeysBitmap) + copy(dAtA[i:], m.CurrentPubKeysBitmap) + i = encodeVarintMetaBlock(dAtA, i, uint64(len(m.CurrentPubKeysBitmap))) + i-- + dAtA[i] = 0x7a + } { __caster := &github_com_multiversx_mx_chain_core_go_data.BigIntCaster{} size := __caster.Size(m.DeveloperFees) @@ -2252,6 +2295,14 @@ func (m *ShardData) Size() (n int) { l = __caster.Size(m.DeveloperFees) n += 1 + l + sovMetaBlock(uint64(l)) } + l = len(m.CurrentPubKeysBitmap) + if l > 0 { + n += 1 + l + sovMetaBlock(uint64(l)) + } + l = len(m.CurrentSignature) + if l > 0 { + n += 2 + l + sovMetaBlock(uint64(l)) + } return n } @@ -2525,6 +2576,8 @@ func (this *ShardData) String() string { `AccumulatedFees:` + fmt.Sprintf("%v", this.AccumulatedFees) + `,`, `LastIncludedMetaNonce:` + fmt.Sprintf("%v", this.LastIncludedMetaNonce) + `,`, `DeveloperFees:` + fmt.Sprintf("%v", this.DeveloperFees) + `,`, + `CurrentPubKeysBitmap:` + fmt.Sprintf("%v", this.CurrentPubKeysBitmap) + `,`, + `CurrentSignature:` + fmt.Sprintf("%v", this.CurrentSignature) + `,`, `}`, }, "") return s @@ -3264,6 +3317,74 @@ func (m *ShardData) Unmarshal(dAtA []byte) error { } } iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentPubKeysBitmap", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetaBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthMetaBlock + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMetaBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CurrentPubKeysBitmap = append(m.CurrentPubKeysBitmap[:0], dAtA[iNdEx:postIndex]...) + if m.CurrentPubKeysBitmap == nil { + m.CurrentPubKeysBitmap = []byte{} + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CurrentSignature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetaBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthMetaBlock + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthMetaBlock + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CurrentSignature = append(m.CurrentSignature[:0], dAtA[iNdEx:postIndex]...) + if m.CurrentSignature == nil { + m.CurrentSignature = []byte{} + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipMetaBlock(dAtA[iNdEx:]) diff --git a/data/block/metaBlock.proto b/data/block/metaBlock.proto index 8d50a16b..3ea74c03 100644 --- a/data/block/metaBlock.proto +++ b/data/block/metaBlock.proto @@ -37,20 +37,22 @@ message PeerData { // ShardData holds the block information sent by the shards to the metachain message ShardData { - bytes HeaderHash = 2 [(gogoproto.jsontag) = "headerHash,omitempty"]; - repeated MiniBlockHeader ShardMiniBlockHeaders = 3 [(gogoproto.jsontag) = "shardMiniBlockHeaders", (gogoproto.nullable) = false]; - bytes PrevRandSeed = 4 [(gogoproto.jsontag) = "prevRandSeed,omitempty"]; - bytes PubKeysBitmap = 5 [(gogoproto.jsontag) = "pubKeysBitmap,omitempty"]; - bytes Signature = 6 [(gogoproto.jsontag) = "signature,omitempty"]; - uint64 Round = 8 [(gogoproto.jsontag) = "round"]; - bytes PrevHash = 9 [(gogoproto.jsontag) = "prevHash,omitempty"]; - uint64 Nonce = 10 [(gogoproto.jsontag) = "nonce"]; - bytes AccumulatedFees = 12 [(gogoproto.jsontag) = "accumulatedFees,omitempty", (gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; - bytes DeveloperFees = 14 [(gogoproto.jsontag) = "developerFees,omitempty", (gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; - uint32 NumPendingMiniBlocks = 11 [(gogoproto.jsontag) = "numPendingMiniBlocks"]; - uint64 LastIncludedMetaNonce = 13 [(gogoproto.jsontag) = "lastIncludedMetaNonce"]; - uint32 ShardID = 1 [(gogoproto.jsontag) = "shardID"]; - uint32 TxCount = 7 [(gogoproto.jsontag) = "txCount"]; + bytes HeaderHash = 2 [(gogoproto.jsontag) = "headerHash,omitempty"]; + repeated MiniBlockHeader ShardMiniBlockHeaders = 3 [(gogoproto.jsontag) = "shardMiniBlockHeaders", (gogoproto.nullable) = false]; + bytes PrevRandSeed = 4 [(gogoproto.jsontag) = "prevRandSeed,omitempty"]; + bytes PubKeysBitmap = 5 [(gogoproto.jsontag) = "pubKeysBitmap,omitempty"]; + bytes Signature = 6 [(gogoproto.jsontag) = "signature,omitempty"]; + uint64 Round = 8 [(gogoproto.jsontag) = "round"]; + bytes PrevHash = 9 [(gogoproto.jsontag) = "prevHash,omitempty"]; + uint64 Nonce = 10 [(gogoproto.jsontag) = "nonce"]; + bytes AccumulatedFees = 12 [(gogoproto.jsontag) = "accumulatedFees,omitempty", (gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; + bytes DeveloperFees = 14 [(gogoproto.jsontag) = "developerFees,omitempty", (gogoproto.casttypewith) = "math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster"]; + uint32 NumPendingMiniBlocks = 11 [(gogoproto.jsontag) = "numPendingMiniBlocks"]; + uint64 LastIncludedMetaNonce = 13 [(gogoproto.jsontag) = "lastIncludedMetaNonce"]; + uint32 ShardID = 1 [(gogoproto.jsontag) = "shardID"]; + uint32 TxCount = 7 [(gogoproto.jsontag) = "txCount"]; + bytes CurrentPubKeysBitmap = 15 [(gogoproto.jsontag) = "currentPubKeysBitmap,omitempty"]; + bytes CurrentSignature = 16 [(gogoproto.jsontag) = "currentSignature,omitempty"]; } // EpochStartShardData hold the last finalized headers hash and state root hash diff --git a/data/block/shardDataHandler.go b/data/block/shardDataHandler.go index 2599d0c1..8114f88a 100644 --- a/data/block/shardDataHandler.go +++ b/data/block/shardDataHandler.go @@ -202,6 +202,28 @@ func (sd *ShardData) SetTxCount(txCount uint32) error { return nil } +// SetCurrentPubkeyBitmap sets the current pubkeys bitmap +func (sd *ShardData) SetCurrentPubkeyBitmap(bitmap []byte) error { + if sd == nil { + return data.ErrNilPointerReceiver + } + + sd.CurrentPubKeysBitmap = bitmap + + return nil +} + +// SetCurrentSignature sets the current signature +func (sd *ShardData) SetCurrentSignature(signature []byte) error { + if sd == nil { + return data.ErrNilPointerReceiver + } + + sd.CurrentSignature = signature + + return nil +} + // ShallowClone creates and returns a shallow clone of shardData func (sd *ShardData) ShallowClone() data.ShardDataHandler { if sd == nil { diff --git a/data/interface.go b/data/interface.go index ad16705a..348c5041 100644 --- a/data/interface.go +++ b/data/interface.go @@ -175,6 +175,8 @@ type ShardDataHandler interface { GetLastIncludedMetaNonce() uint64 GetShardID() uint32 GetTxCount() uint32 + GetCurrentPubKeysBitmap() []byte + GetCurrentSignature() []byte SetHeaderHash(hash []byte) error SetShardMiniBlockHeaderHandlers(mbHeaderHandlers []MiniBlockHeaderHandler) error @@ -190,6 +192,8 @@ type ShardDataHandler interface { SetLastIncludedMetaNonce(nonce uint64) error SetShardID(shardID uint32) error SetTxCount(txCount uint32) error + SetCurrentPubkeyBitmap(bitmap []byte) error + SetCurrentSignature(bitmap []byte) error ShallowClone() ShardDataHandler } From ffcdfdf55403c85eaa06f473951de2a1ec0880e3 Mon Sep 17 00:00:00 2001 From: Sorin Stanculeanu Date: Thu, 21 Nov 2024 16:42:33 +0200 Subject: [PATCH 2/4] shardData now holds proof structures --- data/block/blockV2.go | 5 + data/block/metaBlock.pb.go | 347 +++++++++++++++++---------------- data/block/metaBlock.proto | 4 +- data/block/shardDataHandler.go | 47 ++++- data/interface.go | 8 +- 5 files changed, 235 insertions(+), 176 deletions(-) diff --git a/data/block/blockV2.go b/data/block/blockV2.go index 4e62e096..727c296d 100644 --- a/data/block/blockV2.go +++ b/data/block/blockV2.go @@ -667,6 +667,11 @@ func (hv2 *HeaderV2) GetPreviousProof() data.HeaderProofHandler { // SetPreviousProof sets the previous proof func (hv2 *HeaderV2) SetPreviousProof(proof data.HeaderProofHandler) { + if check.IfNilReflect(proof) { + hv2.PreviousHeaderProof = nil + return + } + hv2.PreviousHeaderProof = &HeaderProof{ PubKeysBitmap: proof.GetPubKeysBitmap(), AggregatedSignature: proof.GetAggregatedSignature(), diff --git a/data/block/metaBlock.pb.go b/data/block/metaBlock.pb.go index 6cd503a6..e6e476f8 100644 --- a/data/block/metaBlock.pb.go +++ b/data/block/metaBlock.pb.go @@ -145,22 +145,22 @@ func (m *PeerData) GetValueChange() *math_big.Int { // ShardData holds the block information sent by the shards to the metachain type ShardData struct { - HeaderHash []byte `protobuf:"bytes,2,opt,name=HeaderHash,proto3" json:"headerHash,omitempty"` - ShardMiniBlockHeaders []MiniBlockHeader `protobuf:"bytes,3,rep,name=ShardMiniBlockHeaders,proto3" json:"shardMiniBlockHeaders"` - PrevRandSeed []byte `protobuf:"bytes,4,opt,name=PrevRandSeed,proto3" json:"prevRandSeed,omitempty"` - PubKeysBitmap []byte `protobuf:"bytes,5,opt,name=PubKeysBitmap,proto3" json:"pubKeysBitmap,omitempty"` - Signature []byte `protobuf:"bytes,6,opt,name=Signature,proto3" json:"signature,omitempty"` - Round uint64 `protobuf:"varint,8,opt,name=Round,proto3" json:"round"` - PrevHash []byte `protobuf:"bytes,9,opt,name=PrevHash,proto3" json:"prevHash,omitempty"` - Nonce uint64 `protobuf:"varint,10,opt,name=Nonce,proto3" json:"nonce"` - AccumulatedFees *math_big.Int `protobuf:"bytes,12,opt,name=AccumulatedFees,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"accumulatedFees,omitempty"` - DeveloperFees *math_big.Int `protobuf:"bytes,14,opt,name=DeveloperFees,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"developerFees,omitempty"` - NumPendingMiniBlocks uint32 `protobuf:"varint,11,opt,name=NumPendingMiniBlocks,proto3" json:"numPendingMiniBlocks"` - LastIncludedMetaNonce uint64 `protobuf:"varint,13,opt,name=LastIncludedMetaNonce,proto3" json:"lastIncludedMetaNonce"` - ShardID uint32 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"shardID"` - TxCount uint32 `protobuf:"varint,7,opt,name=TxCount,proto3" json:"txCount"` - CurrentPubKeysBitmap []byte `protobuf:"bytes,15,opt,name=CurrentPubKeysBitmap,proto3" json:"currentPubKeysBitmap,omitempty"` - CurrentSignature []byte `protobuf:"bytes,16,opt,name=CurrentSignature,proto3" json:"currentSignature,omitempty"` + HeaderHash []byte `protobuf:"bytes,2,opt,name=HeaderHash,proto3" json:"headerHash,omitempty"` + ShardMiniBlockHeaders []MiniBlockHeader `protobuf:"bytes,3,rep,name=ShardMiniBlockHeaders,proto3" json:"shardMiniBlockHeaders"` + PrevRandSeed []byte `protobuf:"bytes,4,opt,name=PrevRandSeed,proto3" json:"prevRandSeed,omitempty"` + PubKeysBitmap []byte `protobuf:"bytes,5,opt,name=PubKeysBitmap,proto3" json:"pubKeysBitmap,omitempty"` + Signature []byte `protobuf:"bytes,6,opt,name=Signature,proto3" json:"signature,omitempty"` + Round uint64 `protobuf:"varint,8,opt,name=Round,proto3" json:"round"` + PrevHash []byte `protobuf:"bytes,9,opt,name=PrevHash,proto3" json:"prevHash,omitempty"` + Nonce uint64 `protobuf:"varint,10,opt,name=Nonce,proto3" json:"nonce"` + AccumulatedFees *math_big.Int `protobuf:"bytes,12,opt,name=AccumulatedFees,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"accumulatedFees,omitempty"` + DeveloperFees *math_big.Int `protobuf:"bytes,14,opt,name=DeveloperFees,proto3,casttypewith=math/big.Int;github.com/multiversx/mx-chain-core-go/data.BigIntCaster" json:"developerFees,omitempty"` + NumPendingMiniBlocks uint32 `protobuf:"varint,11,opt,name=NumPendingMiniBlocks,proto3" json:"numPendingMiniBlocks"` + LastIncludedMetaNonce uint64 `protobuf:"varint,13,opt,name=LastIncludedMetaNonce,proto3" json:"lastIncludedMetaNonce"` + ShardID uint32 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"shardID"` + TxCount uint32 `protobuf:"varint,7,opt,name=TxCount,proto3" json:"txCount"` + CurrentShardHeaderProof *HeaderProof `protobuf:"bytes,15,opt,name=CurrentShardHeaderProof,proto3" json:"currentHeaderProof,omitempty"` + PreviousShardHeaderProof *HeaderProof `protobuf:"bytes,16,opt,name=PreviousShardHeaderProof,proto3" json:"previousHeaderProof,omitempty"` } func (m *ShardData) Reset() { *m = ShardData{} } @@ -289,16 +289,16 @@ func (m *ShardData) GetTxCount() uint32 { return 0 } -func (m *ShardData) GetCurrentPubKeysBitmap() []byte { +func (m *ShardData) GetCurrentShardHeaderProof() *HeaderProof { if m != nil { - return m.CurrentPubKeysBitmap + return m.CurrentShardHeaderProof } return nil } -func (m *ShardData) GetCurrentSignature() []byte { +func (m *ShardData) GetPreviousShardHeaderProof() *HeaderProof { if m != nil { - return m.CurrentSignature + return m.PreviousShardHeaderProof } return nil } @@ -812,116 +812,117 @@ func init() { func init() { proto.RegisterFile("metaBlock.proto", fileDescriptor_87b91ab531130b2b) } var fileDescriptor_87b91ab531130b2b = []byte{ - // 1735 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0x4f, 0x6f, 0xdb, 0xc8, - 0x15, 0x17, 0xed, 0xc8, 0x92, 0x46, 0x96, 0x4d, 0x8d, 0xff, 0x31, 0xce, 0x2e, 0x29, 0xb8, 0x2d, - 0x60, 0x2c, 0x6a, 0x1b, 0x70, 0xb1, 0x40, 0x81, 0xa2, 0x2d, 0x2c, 0x3b, 0xee, 0x6a, 0x37, 0x76, - 0x04, 0xca, 0x35, 0xd0, 0x22, 0x05, 0x3a, 0x22, 0xc7, 0xd2, 0xc0, 0x14, 0xc9, 0x92, 0x43, 0x3b, - 0xee, 0xa1, 0xe8, 0xa1, 0xbd, 0x14, 0x28, 0x10, 0x20, 0x40, 0xaf, 0xbd, 0xb4, 0x40, 0xd1, 0x2f, - 0xd0, 0x53, 0x4f, 0xbd, 0xe4, 0x98, 0x63, 0x4e, 0x6c, 0xa3, 0x1c, 0x5a, 0xf0, 0x94, 0x8f, 0x50, - 0xcc, 0x90, 0x14, 0x47, 0x12, 0x9d, 0x38, 0x01, 0x84, 0x9c, 0x6c, 0xfe, 0xde, 0x7b, 0xbf, 0x79, - 0x1c, 0x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 0xf3, 0xc5, 0x5f, 0x24, 0x00, 0xb2, 0x9f, 0x26, 0x61, 0x1d, 0xd4, 0x5a, 0x36, 0xaf, 0x63, 0x31, - 0x20, 0x17, 0xe0, 0x2a, 0x90, 0x99, 0x82, 0x8e, 0x7b, 0x6c, 0x46, 0x47, 0x1c, 0x95, 0x98, 0x22, - 0x43, 0x7f, 0x6a, 0xfb, 0x14, 0x5d, 0x12, 0xbb, 0x27, 0xcf, 0xc1, 0x75, 0x00, 0x79, 0xab, 0xc3, - 0x9e, 0xa8, 0x3a, 0x0f, 0x97, 0xe2, 0x13, 0xbe, 0x46, 0xc4, 0xc2, 0xa6, 0x7c, 0x0f, 0xca, 0x60, - 0x31, 0x36, 0x4d, 0x90, 0x22, 0x5c, 0x06, 0x55, 0x86, 0x74, 0x2c, 0xc4, 0x76, 0x35, 0x79, 0x21, - 0x05, 0x74, 0xd6, 0x9e, 0x2f, 0xb1, 0x5c, 0x6a, 0xfe, 0xf8, 0xe5, 0x6b, 0xb5, 0xf0, 0xea, 0xb5, - 0x5a, 0x78, 0xfb, 0x5a, 0x95, 0x7e, 0x3b, 0x54, 0xa5, 0xbf, 0x0d, 0x55, 0xe9, 0xc5, 0x50, 0x95, - 0x5e, 0x0e, 0x55, 0xe9, 0xd5, 0x50, 0x95, 0xfe, 0x33, 0x54, 0xa5, 0xff, 0x0d, 0xd5, 0xc2, 0xdb, - 0xa1, 0x2a, 0x3d, 0x7b, 0xa3, 0x16, 0x5e, 0xbe, 0x51, 0x0b, 0xaf, 0xde, 0xa8, 0x85, 0x9f, 0x17, - 0xf9, 0x6f, 0xc2, 0xdd, 0x05, 0x7e, 0x51, 0xdf, 0xfb, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x59, - 0xcb, 0x7d, 0xf1, 0x77, 0x16, 0x00, 0x00, + // 1748 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x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, 0x41, 0xd9, 0x09, 0x38, 0x8f, 0xb4, 0xd2, 0x25, 0x61, 0x0b, 0xac, 0xf1, 0x06, 0x92, 0xf6, + 0x09, 0x59, 0xd2, 0xa3, 0x79, 0x61, 0xda, 0xac, 0x67, 0x71, 0x60, 0x1b, 0xc0, 0x71, 0x58, 0x08, + 0x6c, 0x51, 0xbc, 0x93, 0xe8, 0x9c, 0xce, 0x94, 0x55, 0xd2, 0xab, 0x0c, 0xee, 0xce, 0x3f, 0x15, + 0x00, 0x52, 0x08, 0x5a, 0x60, 0x3d, 0x16, 0x35, 0x64, 0x91, 0x5f, 0x61, 0x33, 0x11, 0x2e, 0x45, + 0x08, 0xd7, 0x76, 0x2c, 0x5c, 0x19, 0x2d, 0xaf, 0xf9, 0x41, 0x2c, 0x5e, 0xeb, 0x56, 0x06, 0x5f, + 0xcf, 0x8c, 0x0a, 0x8f, 0x24, 0xd5, 0x12, 0xc2, 0x50, 0x3e, 0xac, 0x26, 0x4b, 0x24, 0x78, 0xb3, + 0x16, 0x07, 0x2e, 0xe1, 0x04, 0xd2, 0x53, 0xd6, 0xce, 0x9f, 0x57, 0x41, 0x29, 0x95, 0xde, 0x51, + 0x3b, 0x54, 0x66, 0xb4, 0xc3, 0x51, 0xc7, 0x5d, 0x78, 0x53, 0xc7, 0x5d, 0x9c, 0xd1, 0x71, 0xdf, + 0x71, 0x0a, 0x3b, 0x8a, 0xa7, 0x9f, 0x96, 0x7d, 0x45, 0xd5, 0xbc, 0xd8, 0xcd, 0xe4, 0x55, 0xd3, + 0x3d, 0x1c, 0xbd, 0xaa, 0x97, 0xb8, 0xea, 0x29, 0x0b, 0xfe, 0x20, 0x1a, 0x55, 0x45, 0x84, 0xa8, + 0x91, 0xac, 0x4a, 0x83, 0xa3, 0x08, 0x50, 0x8d, 0x03, 0x14, 0x9d, 0xd8, 0x51, 0x1f, 0x51, 0xc6, + 0x07, 0x89, 0xc2, 0xbd, 0x07, 0x89, 0x1f, 0x83, 0xd5, 0xa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, 0xf8, 0xac, 0x56, 0x5d, 0x4a, 0x00, 0x9d, 0xb7, 0xe7, 0x6b, + 0x5c, 0x2d, 0x34, 0x7f, 0xf4, 0xfc, 0x65, 0x3d, 0xf7, 0xe2, 0x65, 0x3d, 0xf7, 0xd5, 0xcb, 0xba, + 0xf2, 0x9b, 0x61, 0x5d, 0xf9, 0xdb, 0xb0, 0xae, 0x7c, 0x39, 0xac, 0x2b, 0xcf, 0x87, 0x75, 0xe5, + 0xc5, 0xb0, 0xae, 0xfc, 0x77, 0x58, 0x57, 0xfe, 0x3f, 0xac, 0xe7, 0xbe, 0x1a, 0xd6, 0x95, 0x2f, + 0x5e, 0xd5, 0x73, 0xcf, 0x5f, 0xd5, 0x73, 0x2f, 0x5e, 0xd5, 0x73, 0x3f, 0xcf, 0x8b, 0x9f, 0x94, + 0xbb, 0x4b, 0x62, 0xa3, 0xbe, 0xfb, 0x75, 0x00, 0x00, 0x00, 0xff, 0xff, 0x50, 0xeb, 0xff, 0x41, + 0xb6, 0x16, 0x00, 0x00, } func (x PeerAction) String() string { @@ -1042,10 +1043,10 @@ func (this *ShardData) Equal(that interface{}) bool { if this.TxCount != that1.TxCount { return false } - if !bytes.Equal(this.CurrentPubKeysBitmap, that1.CurrentPubKeysBitmap) { + if !this.CurrentShardHeaderProof.Equal(that1.CurrentShardHeaderProof) { return false } - if !bytes.Equal(this.CurrentSignature, that1.CurrentSignature) { + if !this.PreviousShardHeaderProof.Equal(that1.PreviousShardHeaderProof) { return false } return true @@ -1367,8 +1368,12 @@ func (this *ShardData) GoString() string { s = append(s, "LastIncludedMetaNonce: "+fmt.Sprintf("%#v", this.LastIncludedMetaNonce)+",\n") s = append(s, "ShardID: "+fmt.Sprintf("%#v", this.ShardID)+",\n") s = append(s, "TxCount: "+fmt.Sprintf("%#v", this.TxCount)+",\n") - s = append(s, "CurrentPubKeysBitmap: "+fmt.Sprintf("%#v", this.CurrentPubKeysBitmap)+",\n") - s = append(s, "CurrentSignature: "+fmt.Sprintf("%#v", this.CurrentSignature)+",\n") + if this.CurrentShardHeaderProof != nil { + s = append(s, "CurrentShardHeaderProof: "+fmt.Sprintf("%#v", this.CurrentShardHeaderProof)+",\n") + } + if this.PreviousShardHeaderProof != nil { + s = append(s, "PreviousShardHeaderProof: "+fmt.Sprintf("%#v", this.PreviousShardHeaderProof)+",\n") + } s = append(s, "}") return strings.Join(s, "") } @@ -1572,19 +1577,29 @@ func (m *ShardData) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.CurrentSignature) > 0 { - i -= len(m.CurrentSignature) - copy(dAtA[i:], m.CurrentSignature) - i = encodeVarintMetaBlock(dAtA, i, uint64(len(m.CurrentSignature))) + if m.PreviousShardHeaderProof != nil { + { + size, err := m.PreviousShardHeaderProof.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetaBlock(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0x1 i-- dAtA[i] = 0x82 } - if len(m.CurrentPubKeysBitmap) > 0 { - i -= len(m.CurrentPubKeysBitmap) - copy(dAtA[i:], m.CurrentPubKeysBitmap) - i = encodeVarintMetaBlock(dAtA, i, uint64(len(m.CurrentPubKeysBitmap))) + if m.CurrentShardHeaderProof != nil { + { + size, err := m.CurrentShardHeaderProof.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintMetaBlock(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0x7a } @@ -2295,12 +2310,12 @@ func (m *ShardData) Size() (n int) { l = __caster.Size(m.DeveloperFees) n += 1 + l + sovMetaBlock(uint64(l)) } - l = len(m.CurrentPubKeysBitmap) - if l > 0 { + if m.CurrentShardHeaderProof != nil { + l = m.CurrentShardHeaderProof.Size() n += 1 + l + sovMetaBlock(uint64(l)) } - l = len(m.CurrentSignature) - if l > 0 { + if m.PreviousShardHeaderProof != nil { + l = m.PreviousShardHeaderProof.Size() n += 2 + l + sovMetaBlock(uint64(l)) } return n @@ -2576,8 +2591,8 @@ func (this *ShardData) String() string { `AccumulatedFees:` + fmt.Sprintf("%v", this.AccumulatedFees) + `,`, `LastIncludedMetaNonce:` + fmt.Sprintf("%v", this.LastIncludedMetaNonce) + `,`, `DeveloperFees:` + fmt.Sprintf("%v", this.DeveloperFees) + `,`, - `CurrentPubKeysBitmap:` + fmt.Sprintf("%v", this.CurrentPubKeysBitmap) + `,`, - `CurrentSignature:` + fmt.Sprintf("%v", this.CurrentSignature) + `,`, + `CurrentShardHeaderProof:` + strings.Replace(fmt.Sprintf("%v", this.CurrentShardHeaderProof), "HeaderProof", "HeaderProof", 1) + `,`, + `PreviousShardHeaderProof:` + strings.Replace(fmt.Sprintf("%v", this.PreviousShardHeaderProof), "HeaderProof", "HeaderProof", 1) + `,`, `}`, }, "") return s @@ -3319,9 +3334,9 @@ func (m *ShardData) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 15: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentPubKeysBitmap", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field CurrentShardHeaderProof", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowMetaBlock @@ -3331,31 +3346,33 @@ func (m *ShardData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthMetaBlock } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthMetaBlock } if postIndex > l { return io.ErrUnexpectedEOF } - m.CurrentPubKeysBitmap = append(m.CurrentPubKeysBitmap[:0], dAtA[iNdEx:postIndex]...) - if m.CurrentPubKeysBitmap == nil { - m.CurrentPubKeysBitmap = []byte{} + if m.CurrentShardHeaderProof == nil { + m.CurrentShardHeaderProof = &HeaderProof{} + } + if err := m.CurrentShardHeaderProof.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex case 16: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentSignature", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PreviousShardHeaderProof", wireType) } - var byteLen int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowMetaBlock @@ -3365,24 +3382,26 @@ func (m *ShardData) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - if byteLen < 0 { + if msglen < 0 { return ErrInvalidLengthMetaBlock } - postIndex := iNdEx + byteLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthMetaBlock } if postIndex > l { return io.ErrUnexpectedEOF } - m.CurrentSignature = append(m.CurrentSignature[:0], dAtA[iNdEx:postIndex]...) - if m.CurrentSignature == nil { - m.CurrentSignature = []byte{} + if m.PreviousShardHeaderProof == nil { + m.PreviousShardHeaderProof = &HeaderProof{} + } + if err := m.PreviousShardHeaderProof.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err } iNdEx = postIndex default: diff --git a/data/block/metaBlock.proto b/data/block/metaBlock.proto index 3ea74c03..879f2daa 100644 --- a/data/block/metaBlock.proto +++ b/data/block/metaBlock.proto @@ -51,8 +51,8 @@ message ShardData { uint64 LastIncludedMetaNonce = 13 [(gogoproto.jsontag) = "lastIncludedMetaNonce"]; uint32 ShardID = 1 [(gogoproto.jsontag) = "shardID"]; uint32 TxCount = 7 [(gogoproto.jsontag) = "txCount"]; - bytes CurrentPubKeysBitmap = 15 [(gogoproto.jsontag) = "currentPubKeysBitmap,omitempty"]; - bytes CurrentSignature = 16 [(gogoproto.jsontag) = "currentSignature,omitempty"]; + HeaderProof CurrentShardHeaderProof = 15 [(gogoproto.jsontag) = "currentHeaderProof,omitempty"]; + HeaderProof PreviousShardHeaderProof = 16 [(gogoproto.jsontag) = "previousHeaderProof,omitempty"]; } // EpochStartShardData hold the last finalized headers hash and state root hash diff --git a/data/block/shardDataHandler.go b/data/block/shardDataHandler.go index 8114f88a..247be644 100644 --- a/data/block/shardDataHandler.go +++ b/data/block/shardDataHandler.go @@ -3,6 +3,7 @@ package block import ( "math/big" + "github.com/multiversx/mx-chain-core-go/core/check" "github.com/multiversx/mx-chain-core-go/data" ) @@ -202,24 +203,58 @@ func (sd *ShardData) SetTxCount(txCount uint32) error { return nil } -// SetCurrentPubkeyBitmap sets the current pubkeys bitmap -func (sd *ShardData) SetCurrentPubkeyBitmap(bitmap []byte) error { +// GetCurrentProof returns the current shard header proof +func (sd *ShardData) GetCurrentProof() data.HeaderProofHandler { + return sd.CurrentShardHeaderProof +} + +// SetCurrentProof sets the current shard header proof +func (sd *ShardData) SetCurrentProof(proof data.HeaderProofHandler) error { if sd == nil { return data.ErrNilPointerReceiver } - sd.CurrentPubKeysBitmap = bitmap + if check.IfNilReflect(proof) { + sd.CurrentShardHeaderProof = nil + return nil + } + + sd.CurrentShardHeaderProof = &HeaderProof{ + PubKeysBitmap: proof.GetPubKeysBitmap(), + AggregatedSignature: proof.GetAggregatedSignature(), + HeaderHash: proof.GetHeaderHash(), + HeaderEpoch: proof.GetHeaderEpoch(), + HeaderNonce: proof.GetHeaderNonce(), + HeaderShardId: proof.GetHeaderShardId(), + } return nil } -// SetCurrentSignature sets the current signature -func (sd *ShardData) SetCurrentSignature(signature []byte) error { +// GetPreviousProof returns the previous shard header proof +func (sd *ShardData) GetPreviousProof() data.HeaderProofHandler { + return sd.PreviousShardHeaderProof +} + +// SetPreviousProof sets the previous shard header proof +func (sd *ShardData) SetPreviousProof(proof data.HeaderProofHandler) error { if sd == nil { return data.ErrNilPointerReceiver } - sd.CurrentSignature = signature + if check.IfNilReflect(proof) { + sd.PreviousShardHeaderProof = nil + return nil + } + + sd.PreviousShardHeaderProof = &HeaderProof{ + PubKeysBitmap: proof.GetPubKeysBitmap(), + AggregatedSignature: proof.GetAggregatedSignature(), + HeaderHash: proof.GetHeaderHash(), + HeaderEpoch: proof.GetHeaderEpoch(), + HeaderNonce: proof.GetHeaderNonce(), + HeaderShardId: proof.GetHeaderShardId(), + } return nil } diff --git a/data/interface.go b/data/interface.go index 348c5041..8231cc56 100644 --- a/data/interface.go +++ b/data/interface.go @@ -175,8 +175,8 @@ type ShardDataHandler interface { GetLastIncludedMetaNonce() uint64 GetShardID() uint32 GetTxCount() uint32 - GetCurrentPubKeysBitmap() []byte - GetCurrentSignature() []byte + GetCurrentProof() HeaderProofHandler + GetPreviousProof() HeaderProofHandler SetHeaderHash(hash []byte) error SetShardMiniBlockHeaderHandlers(mbHeaderHandlers []MiniBlockHeaderHandler) error @@ -192,8 +192,8 @@ type ShardDataHandler interface { SetLastIncludedMetaNonce(nonce uint64) error SetShardID(shardID uint32) error SetTxCount(txCount uint32) error - SetCurrentPubkeyBitmap(bitmap []byte) error - SetCurrentSignature(bitmap []byte) error + SetCurrentProof(proof HeaderProofHandler) error + SetPreviousProof(proof HeaderProofHandler) error ShallowClone() ShardDataHandler } From ddd46264c030d2eed3246fb0cd9a12fe4621815f Mon Sep 17 00:00:00 2001 From: Sorin Stanculeanu Date: Wed, 4 Dec 2024 12:54:59 +0200 Subject: [PATCH 3/4] removed currentProof from shardData --- data/block/metaBlock.pb.go | 295 +++++++++++++-------------------- data/block/metaBlock.proto | 3 +- data/block/shardDataHandler.go | 28 ---- data/interface.go | 2 - 4 files changed, 113 insertions(+), 215 deletions(-) diff --git a/data/block/metaBlock.pb.go b/data/block/metaBlock.pb.go index e6e476f8..be4a890a 100644 --- a/data/block/metaBlock.pb.go +++ b/data/block/metaBlock.pb.go @@ -159,8 +159,7 @@ type ShardData struct { LastIncludedMetaNonce uint64 `protobuf:"varint,13,opt,name=LastIncludedMetaNonce,proto3" json:"lastIncludedMetaNonce"` ShardID uint32 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"shardID"` TxCount uint32 `protobuf:"varint,7,opt,name=TxCount,proto3" json:"txCount"` - CurrentShardHeaderProof *HeaderProof `protobuf:"bytes,15,opt,name=CurrentShardHeaderProof,proto3" json:"currentHeaderProof,omitempty"` - PreviousShardHeaderProof *HeaderProof `protobuf:"bytes,16,opt,name=PreviousShardHeaderProof,proto3" json:"previousHeaderProof,omitempty"` + PreviousShardHeaderProof *HeaderProof `protobuf:"bytes,15,opt,name=PreviousShardHeaderProof,proto3" json:"previousHeaderProof,omitempty"` } func (m *ShardData) Reset() { *m = ShardData{} } @@ -289,13 +288,6 @@ func (m *ShardData) GetTxCount() uint32 { return 0 } -func (m *ShardData) GetCurrentShardHeaderProof() *HeaderProof { - if m != nil { - return m.CurrentShardHeaderProof - } - return nil -} - func (m *ShardData) GetPreviousShardHeaderProof() *HeaderProof { if m != nil { return m.PreviousShardHeaderProof @@ -812,117 +804,115 @@ func init() { func init() { proto.RegisterFile("metaBlock.proto", fileDescriptor_87b91ab531130b2b) } var fileDescriptor_87b91ab531130b2b = []byte{ - // 1748 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcf, 0x6f, 0x23, 0x49, - 0x15, 0x76, 0x27, 0xe3, 0xd8, 0x2e, 0xc7, 0x89, 0x5d, 0xf9, 0xd5, 0x93, 0xd9, 0x71, 0x9b, 0x00, - 0x52, 0xb4, 0x22, 0x89, 0x14, 0xb4, 0x12, 0x12, 0x02, 0x14, 0x27, 0x13, 0xd6, 0xec, 0x24, 0x6b, - 0xb5, 0x43, 0x24, 0xd0, 0x22, 0x51, 0xee, 0xae, 0xd8, 0xa5, 0xb4, 0xbb, 0x7a, 0xbb, 0xab, 0x93, - 0x09, 0x07, 0xc4, 0x01, 0x2e, 0x48, 0x48, 0x2b, 0x21, 0x71, 0xe5, 0x02, 0x12, 0xe2, 0x1f, 0xe0, - 0xc4, 0x89, 0xcb, 0x1e, 0x47, 0x9c, 0xe6, 0xd4, 0x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a4, 0x34, 0x9d, 0x02, 0xfc, 0xa3, 0x02, 0xaa, 0x02, 0x3d, - 0xc7, 0xb7, 0xd6, 0xdd, 0x19, 0xb1, 0x19, 0x36, 0xe3, 0x12, 0xef, 0x85, 0x81, 0xb6, 0xcd, 0x26, - 0x6c, 0xf3, 0x48, 0x6b, 0x2a, 0x01, 0xd1, 0x3b, 0x75, 0x7c, 0x8b, 0x5c, 0xd3, 0x6b, 0x63, 0x57, - 0xae, 0x73, 0xd1, 0x3b, 0xdd, 0x71, 0xd3, 0x5c, 0x7a, 0xe7, 0xc4, 0xf2, 0xf0, 0x5f, 0x0a, 0x68, - 0xc4, 0xd8, 0x29, 0xe5, 0x92, 0xc7, 0xa8, 0x41, 0xad, 0x8e, 0xef, 0x31, 0x44, 0x6c, 0xd4, 0x25, - 0x16, 0x61, 0x77, 0xf1, 0x81, 0xb9, 0x0d, 0x03, 0xed, 0x43, 0xf7, 0x0d, 0xbe, 0xf3, 0x48, 0xfa, - 0x8d, 0x09, 0xc2, 0x5f, 0x83, 0xd2, 0x39, 0x35, 0x71, 0xdb, 0x25, 0x46, 0x72, 0x83, 0xfa, 0x25, - 0xbf, 0x41, 0xd9, 0x09, 0x38, 0x8f, 0xb4, 0xd2, 0x25, 0x61, 0x0b, 0xac, 0xf1, 0x06, 0x92, 0xf6, - 0x09, 0x59, 0xd2, 0xa3, 0x79, 0x61, 0xda, 0xac, 0x67, 0x71, 0x60, 0x1b, 0xc0, 0x71, 0x58, 0x08, - 0x6c, 0x51, 0xbc, 0x93, 0xe8, 0x9c, 0xce, 0x94, 0x55, 0xd2, 0xab, 0x0c, 0xee, 0xce, 0x3f, 0x15, - 0x00, 0x52, 0x08, 0x5a, 0x60, 0x3d, 0x16, 0x35, 0x64, 0x91, 0x5f, 0x61, 0x33, 0x11, 0x2e, 0x45, - 0x08, 0xd7, 0x76, 0x2c, 0x5c, 0x19, 0x2d, 0xaf, 0xf9, 0x41, 0x2c, 0x5e, 0xeb, 0x56, 0x06,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- 0xbb, 0x4b, 0x62, 0xa3, 0xbe, 0xfb, 0x75, 0x00, 0x00, 0x00, 0xff, 0xff, 0x50, 0xeb, 0xff, 0x41, - 0xb6, 0x16, 0x00, 0x00, + // 1721 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcf, 0x6f, 0xe3, 0x4a, + 0x1d, 0x8f, 0xdb, 0x4d, 0x93, 0x4c, 0x9a, 0x36, 0x99, 0xfe, 0xf2, 0x76, 0xdf, 0xc6, 0xa1, 0x80, + 0x54, 0x3d, 0xd1, 0x56, 0x2a, 0x7a, 0x12, 0x12, 0x02, 0xd4, 0xb4, 0x5b, 0x5e, 0x78, 0xdb, 0xbe, + 0xc8, 0x29, 0x95, 0x40, 0x0f, 0x89, 0x89, 0x3d, 0x4d, 0x46, 0x75, 0x3c, 0x7e, 0xf6, 0xb8, 0xdd, + 0x72, 0x40, 0x1c, 0xe0, 0x82, 0x84, 0xf4, 0x24, 0x24, 0xae, 0x5c, 0x40, 0x42, 0xfc, 0x03, 0x9c, + 0x38, 0x71, 0x79, 0xc7, 0x3d, 0xee, 0xc9, 0xb0, 0xd9, 0x03, 0xc8, 0xa7, 0xfd, 0x13, 0xd0, 0x8c, + 0xed, 0x78, 0x92, 0x38, 0xbb, 0xdd, 0x95, 0xa2, 0x3d, 0xb5, 0xfe, 0x7c, 0xbf, 0x9f, 0xef, 0x7c, + 0x3d, 0xfe, 0xfe, 0x0c, 0x58, 0x1d, 0x60, 0x86, 0x9a, 0x16, 0x35, 0xae, 0xf7, 0x1d, 0x97, 0x32, + 0x0a, 0xf3, 0xe2, 0xcf, 0xf6, 0x5e, 0x8f, 0xb0, 0xbe, 0xdf, 0xdd, 0x37, 0xe8, 0xe0, 0xa0, 0x47, + 0x7b, 0xf4, 0x40, 0xc0, 0x5d, 0xff, 0x4a, 0x3c, 0x89, 0x07, 0xf1, 0x5f, 0xc4, 0xda, 0x2e, 0x77, + 0x53, 0x13, 0xdb, 0x15, 0xf1, 0x70, 0x79, 0x18, 0x3d, 0xee, 0xfc, 0x77, 0x01, 0x14, 0xdb, 0x18, + 0xbb, 0x27, 0x88, 0x21, 0x78, 0x00, 0x0a, 0x47, 0xa6, 0xe9, 0x62, 0xcf, 0x53, 0x95, 0x86, 0xb2, + 0xbb, 0xdc, 0xdc, 0x08, 0x03, 0xad, 0x86, 0x22, 0xe8, 0x3b, 0x74, 0x40, 0x18, 0x1e, 0x38, 0xec, + 0x4e, 0x4f, 0xb4, 0xe0, 0x27, 0xa0, 0xd4, 0xf6, 0xbb, 0x16, 0x31, 0x3e, 0xc3, 0x77, 0xea, 0x82, + 0xa0, 0x6c, 0x85, 0x81, 0xb6, 0xe6, 0x24, 0xa0, 0x44, 0x4a, 0x35, 0xe1, 0x27, 0x60, 0xe9, 0xc8, + 0x60, 0x84, 0xda, 0xea, 0x62, 0x43, 0xd9, 0x5d, 0x39, 0xac, 0x45, 0xce, 0xec, 0x73, 0x47, 0x22, + 0x41, 0x13, 0x84, 0x81, 0xb6, 0x84, 0xc4, 0xff, 0x7a, 0xac, 0xcc, 0x4f, 0xbb, 0x20, 0x03, 0xdc, + 0x61, 0x68, 0xe0, 0xa8, 0x0f, 0x1a, 0xca, 0xee, 0x83, 0xe8, 0x34, 0x96, 0x80, 0xf2, 0x69, 0x23, + 0x4d, 0xf8, 0x5b, 0x05, 0x94, 0x2f, 0x91, 0xe5, 0xe3, 0xe3, 0x3e, 0xb2, 0x7b, 0x58, 0xcd, 0x0b, + 0x3f, 0xbb, 0x61, 0xa0, 0x6d, 0xdc, 0xa4, 0x70, 0xca, 0xfd, 0xfb, 0xbf, 0xb5, 0x27, 0x03, 0xc4, + 0xfa, 0x07, 0x5d, 0xd2, 0xdb, 0x6f, 0xd9, 0xec, 0xfb, 0xd2, 0x6d, 0x0f, 0x7c, 0x8b, 0x91, 0x1b, + 0xec, 0x7a, 0xcf, 0x0e, 0x06, 0x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 0xaa, 0xb1, 0x08, 0xd2, 0x13, 0x19, 0xfc, 0x12, 0xa8, 0x3c, 0x72, 0x08, + 0xf5, 0x3d, 0xc1, 0x8c, 0x92, 0xaa, 0xed, 0x52, 0x7a, 0xa5, 0xae, 0x36, 0x94, 0xdd, 0xf2, 0x21, + 0x8c, 0x93, 0x55, 0x92, 0x34, 0xbf, 0x11, 0x06, 0xda, 0x63, 0x27, 0xe6, 0x49, 0x02, 0x29, 0x20, + 0x67, 0x9a, 0xdd, 0xf9, 0x5d, 0x1e, 0xac, 0x3d, 0x71, 0xa8, 0xd1, 0xef, 0x30, 0xe4, 0xb2, 0xb4, + 0xdc, 0xdc, 0xf3, 0xc5, 0x34, 0x90, 0x17, 0x6c, 0x91, 0x10, 0x95, 0x28, 0xbe, 0x31, 0x07, 0xf4, + 0x08, 0x4f, 0xb3, 0xaa, 0x30, 0x23, 0xab, 0x46, 0x19, 0x52, 0x9c, 0x91, 0x21, 0xef, 0x5f, 0xf8, + 0x0e, 0x41, 0x51, 0xa7, 0x94, 0x09, 0xde, 0x62, 0x9a, 0xb0, 0x6e, 0x8c, 0xc9, 0x09, 0x9b, 0xe8, + 0xc1, 0x33, 0x50, 0xeb, 0x18, 0x7d, 0x6c, 0xfa, 0x16, 0x36, 0x47, 0x64, 0x20, 0xc8, 0x5a, 0x18, + 0x68, 0x8f, 0xbc, 0x49, 0xa1, 0x64, 0x65, 0x9a, 0x09, 0x7f, 0x06, 0x36, 0x4e, 0x89, 0xeb, 0xb1, + 0x24, 0x14, 0x93, 0xf6, 0x1c, 0xd7, 0xc5, 0x6f, 0x86, 0x81, 0xa6, 0x5d, 0x65, 0x29, 0x48, 0x66, + 0xb3, 0x2d, 0x70, 0xd3, 0x3c, 0x26, 0x4f, 0x89, 0x4d, 0xbc, 0x7e, 0x14, 0x93, 0x91, 0xe9, 0x7c, + 0x6a, 0xda, 0xca, 0x52, 0x90, 0x4d, 0x67, 0x5a, 0x80, 0x5f, 0x82, 0xad, 0xc9,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xe1, 0x2a, 0x28, 0x73, 0xa4, 0x63, 0x21, 0xbe, 0xab, 0x55, 0x97, + 0x12, 0x40, 0xe7, 0xed, 0xf9, 0x1a, 0x57, 0x0b, 0xcd, 0x1f, 0x3d, 0x7f, 0x59, 0xcf, 0xbd, 0x78, + 0x59, 0xcf, 0xbd, 0x7e, 0x59, 0x57, 0x7e, 0x33, 0xac, 0x2b, 0x7f, 0x1b, 0xd6, 0x95, 0xaf, 0x87, + 0x75, 0xe5, 0xf9, 0xb0, 0xae, 0xbc, 0x18, 0xd6, 0x95, 0xff, 0x0c, 0xeb, 0xca, 0xff, 0x86, 0xf5, + 0xdc, 0xeb, 0x61, 0x5d, 0xf9, 0xea, 0x55, 0x3d, 0xf7, 0xfc, 0x55, 0x3d, 0xf7, 0xe2, 0x55, 0x3d, + 0xf7, 0xf3, 0xbc, 0xf8, 0x89, 0xb7, 0xbb, 0x24, 0x2e, 0xea, 0xbb, 0xff, 0x0f, 0x00, 0x00, 0xff, + 0xff, 0xff, 0xf0, 0xbf, 0xb2, 0x46, 0x16, 0x00, 0x00, } func (x PeerAction) String() string { @@ -1043,9 +1033,6 @@ func (this *ShardData) Equal(that interface{}) bool { if this.TxCount != that1.TxCount { return false } - if !this.CurrentShardHeaderProof.Equal(that1.CurrentShardHeaderProof) { - return false - } if !this.PreviousShardHeaderProof.Equal(that1.PreviousShardHeaderProof) { return false } @@ -1346,7 +1333,7 @@ func (this *ShardData) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 20) + s := make([]string, 0, 19) s = append(s, "&block.ShardData{") s = append(s, "HeaderHash: "+fmt.Sprintf("%#v", this.HeaderHash)+",\n") if this.ShardMiniBlockHeaders != nil { @@ -1368,9 +1355,6 @@ func (this *ShardData) GoString() string { s = append(s, "LastIncludedMetaNonce: "+fmt.Sprintf("%#v", this.LastIncludedMetaNonce)+",\n") s = append(s, "ShardID: "+fmt.Sprintf("%#v", this.ShardID)+",\n") s = append(s, "TxCount: "+fmt.Sprintf("%#v", this.TxCount)+",\n") - if this.CurrentShardHeaderProof != nil { - s = append(s, "CurrentShardHeaderProof: "+fmt.Sprintf("%#v", this.CurrentShardHeaderProof)+",\n") - } if this.PreviousShardHeaderProof != nil { s = append(s, "PreviousShardHeaderProof: "+fmt.Sprintf("%#v", this.PreviousShardHeaderProof)+",\n") } @@ -1587,20 +1571,6 @@ func (m *ShardData) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintMetaBlock(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - if m.CurrentShardHeaderProof != nil { - { - size, err := m.CurrentShardHeaderProof.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMetaBlock(dAtA, i, uint64(size)) - } - i-- dAtA[i] = 0x7a } { @@ -2310,13 +2280,9 @@ func (m *ShardData) Size() (n int) { l = __caster.Size(m.DeveloperFees) n += 1 + l + sovMetaBlock(uint64(l)) } - if m.CurrentShardHeaderProof != nil { - l = m.CurrentShardHeaderProof.Size() - n += 1 + l + sovMetaBlock(uint64(l)) - } if m.PreviousShardHeaderProof != nil { l = m.PreviousShardHeaderProof.Size() - n += 2 + l + sovMetaBlock(uint64(l)) + n += 1 + l + sovMetaBlock(uint64(l)) } return n } @@ -2591,7 +2557,6 @@ func (this *ShardData) String() string { `AccumulatedFees:` + fmt.Sprintf("%v", this.AccumulatedFees) + `,`, `LastIncludedMetaNonce:` + fmt.Sprintf("%v", this.LastIncludedMetaNonce) + `,`, `DeveloperFees:` + fmt.Sprintf("%v", this.DeveloperFees) + `,`, - `CurrentShardHeaderProof:` + strings.Replace(fmt.Sprintf("%v", this.CurrentShardHeaderProof), "HeaderProof", "HeaderProof", 1) + `,`, `PreviousShardHeaderProof:` + strings.Replace(fmt.Sprintf("%v", this.PreviousShardHeaderProof), "HeaderProof", "HeaderProof", 1) + `,`, `}`, }, "") @@ -3333,42 +3298,6 @@ func (m *ShardData) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentShardHeaderProof", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMetaBlock - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMetaBlock - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMetaBlock - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.CurrentShardHeaderProof == nil { - m.CurrentShardHeaderProof = &HeaderProof{} - } - if err := m.CurrentShardHeaderProof.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 16: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PreviousShardHeaderProof", wireType) } diff --git a/data/block/metaBlock.proto b/data/block/metaBlock.proto index 879f2daa..211cc7e4 100644 --- a/data/block/metaBlock.proto +++ b/data/block/metaBlock.proto @@ -51,8 +51,7 @@ message ShardData { uint64 LastIncludedMetaNonce = 13 [(gogoproto.jsontag) = "lastIncludedMetaNonce"]; uint32 ShardID = 1 [(gogoproto.jsontag) = "shardID"]; uint32 TxCount = 7 [(gogoproto.jsontag) = "txCount"]; - HeaderProof CurrentShardHeaderProof = 15 [(gogoproto.jsontag) = "currentHeaderProof,omitempty"]; - HeaderProof PreviousShardHeaderProof = 16 [(gogoproto.jsontag) = "previousHeaderProof,omitempty"]; + HeaderProof PreviousShardHeaderProof = 15 [(gogoproto.jsontag) = "previousHeaderProof,omitempty"]; } // EpochStartShardData hold the last finalized headers hash and state root hash diff --git a/data/block/shardDataHandler.go b/data/block/shardDataHandler.go index 247be644..d0e7ecfe 100644 --- a/data/block/shardDataHandler.go +++ b/data/block/shardDataHandler.go @@ -203,34 +203,6 @@ func (sd *ShardData) SetTxCount(txCount uint32) error { return nil } -// GetCurrentProof returns the current shard header proof -func (sd *ShardData) GetCurrentProof() data.HeaderProofHandler { - return sd.CurrentShardHeaderProof -} - -// SetCurrentProof sets the current shard header proof -func (sd *ShardData) SetCurrentProof(proof data.HeaderProofHandler) error { - if sd == nil { - return data.ErrNilPointerReceiver - } - - if check.IfNilReflect(proof) { - sd.CurrentShardHeaderProof = nil - return nil - } - - sd.CurrentShardHeaderProof = &HeaderProof{ - PubKeysBitmap: proof.GetPubKeysBitmap(), - AggregatedSignature: proof.GetAggregatedSignature(), - HeaderHash: proof.GetHeaderHash(), - HeaderEpoch: proof.GetHeaderEpoch(), - HeaderNonce: proof.GetHeaderNonce(), - HeaderShardId: proof.GetHeaderShardId(), - } - - return nil -} - // GetPreviousProof returns the previous shard header proof func (sd *ShardData) GetPreviousProof() data.HeaderProofHandler { return sd.PreviousShardHeaderProof diff --git a/data/interface.go b/data/interface.go index 8231cc56..dffdf419 100644 --- a/data/interface.go +++ b/data/interface.go @@ -175,7 +175,6 @@ type ShardDataHandler interface { GetLastIncludedMetaNonce() uint64 GetShardID() uint32 GetTxCount() uint32 - GetCurrentProof() HeaderProofHandler GetPreviousProof() HeaderProofHandler SetHeaderHash(hash []byte) error @@ -192,7 +191,6 @@ type ShardDataHandler interface { SetLastIncludedMetaNonce(nonce uint64) error SetShardID(shardID uint32) error SetTxCount(txCount uint32) error - SetCurrentProof(proof HeaderProofHandler) error SetPreviousProof(proof HeaderProofHandler) error ShallowClone() ShardDataHandler From 66bd6e45a1601c1b6b2126e1f03bf1d673e58b65 Mon Sep 17 00:00:00 2001 From: Sorin Stanculeanu Date: Fri, 6 Dec 2024 15:19:51 +0200 Subject: [PATCH 4/4] added epoch on shard data --- data/block/metaBlock.pb.go | 263 +++++++++++++++++++++---------------- data/block/metaBlock.proto | 1 + 2 files changed, 154 insertions(+), 110 deletions(-) diff --git a/data/block/metaBlock.pb.go b/data/block/metaBlock.pb.go index be4a890a..f0c36c45 100644 --- a/data/block/metaBlock.pb.go +++ b/data/block/metaBlock.pb.go @@ -160,6 +160,7 @@ type ShardData struct { ShardID uint32 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"shardID"` TxCount uint32 `protobuf:"varint,7,opt,name=TxCount,proto3" json:"txCount"` PreviousShardHeaderProof *HeaderProof `protobuf:"bytes,15,opt,name=PreviousShardHeaderProof,proto3" json:"previousHeaderProof,omitempty"` + Epoch uint32 `protobuf:"varint,16,opt,name=Epoch,proto3" json:"epoch,omitempty"` } func (m *ShardData) Reset() { *m = ShardData{} } @@ -295,6 +296,13 @@ func (m *ShardData) GetPreviousShardHeaderProof() *HeaderProof { return nil } +func (m *ShardData) GetEpoch() uint32 { + if m != nil { + return m.Epoch + } + return 0 +} + // EpochStartShardData hold the last finalized headers hash and state root hash type EpochStartShardData struct { ShardID uint32 `protobuf:"varint,1,opt,name=ShardID,proto3" json:"shardID"` @@ -804,115 +812,116 @@ func init() { func init() { proto.RegisterFile("metaBlock.proto", fileDescriptor_87b91ab531130b2b) } var fileDescriptor_87b91ab531130b2b = []byte{ - // 1721 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcf, 0x6f, 0xe3, 0x4a, - 0x1d, 0x8f, 0xdb, 0x4d, 0x93, 0x4c, 0x9a, 0x36, 0x99, 0xfe, 0xf2, 0x76, 0xdf, 0xc6, 0xa1, 0x80, - 0x54, 0x3d, 0xd1, 0x56, 0x2a, 0x7a, 0x12, 0x12, 0x02, 0xd4, 0xb4, 0x5b, 0x5e, 0x78, 0xdb, 0xbe, - 0xc8, 0x29, 0x95, 0x40, 0x0f, 0x89, 0x89, 0x3d, 0x4d, 0x46, 0x75, 0x3c, 0x7e, 0xf6, 0xb8, 0xdd, - 0x72, 0x40, 0x1c, 0xe0, 0x82, 0x84, 0xf4, 0x24, 0x24, 0xae, 0x5c, 0x40, 0x42, 0xfc, 0x03, 0x9c, - 0x38, 0x71, 0x79, 0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 0x91, 0x6d, 0x76, 0x30, 0x36, 0xc5, 0xad, 0x2f, 0x37, 0xb7, 0xc3, 0x40, 0xdb, 0x74, 0x24, 0x5c, - 0x72, 0x75, 0x4c, 0x1f, 0x1e, 0x81, 0x4a, 0xdb, 0xef, 0x7e, 0x86, 0xef, 0xbc, 0x26, 0x61, 0x03, - 0xe4, 0xc4, 0x97, 0xff, 0x28, 0x0c, 0xb4, 0x2d, 0x47, 0x16, 0x48, 0x16, 0xc6, 0x19, 0xfc, 0xab, - 0x77, 0x48, 0xcf, 0x46, 0xcc, 0x77, 0xb1, 0xba, 0x94, 0xc6, 0x98, 0x97, 0x80, 0xf2, 0x57, 0x1f, - 0x69, 0x42, 0x0d, 0xe4, 0x75, 0xea, 0xdb, 0xa6, 0x5a, 0x14, 0x81, 0x52, 0x0a, 0x03, 0x2d, 0xef, - 0x72, 0x40, 0x8f, 0x70, 0x78, 0x08, 0x8a, 0xdc, 0x55, 0x71, 0xff, 0x25, 0x61, 0x76, 0x33, 0x0c, - 0x34, 0xe8, 0xc4, 0x98, 0x64, 0x75, 0xa4, 0xc7, 0x8d, 0x9e, 0x53, 0xdb, 0xc0, 0x2a, 0x48, 0x8d, - 0xda, 0x1c, 0xd0, 0x23, 0x1c, 0x7e, 0xa5, 0x80, 0xd5, 0x23, 0xc3, 0xf0, 0x07, 0xbe, 0x85, 0x18, - 0x36, 0x4f, 0x31, 0xf6, 0xd4, 0x65, 0x61, 0xfc, 0x2a, 0x0c, 0xb4, 0x87, 0x68, 0x5c, 0x34, 0x8f, - 0x98, 0x9b, 0x3c, 0x1e, 0xfe, 0x5e, 0x01, 0x95, 0x13, 0x7c, 0x83, 0x2d, 0xea, 0x60, 0x57, 0x38, - 0xb4, 0x22, 0x1c, 0x32, 0xf9, 0x37, 0x30, 0x65, 0xc1, 0x3c, 0xdc, 0x19, 0x3f, 0x1a, 0x3e, 0x05, - 0xeb, 0xe7, 0xfe, 0xa0, 0x8d, 0x6d, 0x93, 0xd8, 0xb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0xe6, 0xd1, 0xcc, 0x32, 0x41, 0xd1, 0xb3, 0xec, - 0x7c, 0xfc, 0x17, 0x05, 0x80, 0xf4, 0x97, 0x46, 0x58, 0x03, 0x95, 0x96, 0x2d, 0xea, 0x58, 0x04, - 0x54, 0x73, 0x70, 0x1d, 0x54, 0xb9, 0x82, 0x8e, 0x7b, 0x7c, 0x46, 0x47, 0x02, 0x55, 0xb8, 0x22, - 0x47, 0x7f, 0x6a, 0x7b, 0x0c, 0x5d, 0x13, 0xbb, 0x57, 0x5d, 0x80, 0x9b, 0x00, 0x8a, 0x56, 0x87, - 0x5d, 0x59, 0x75, 0x11, 0xae, 0x44, 0x27, 0xfc, 0x04, 0x11, 0x0b, 0x9b, 0xd5, 0x07, 0xb0, 0x0a, - 0x96, 0x23, 0x6a, 0x8c, 0xe4, 0xe1, 0x2a, 0x28, 0x73, 0xa4, 0x63, 0x21, 0xbe, 0xab, 0x55, 0x97, - 0x12, 0x40, 0xe7, 0xed, 0xf9, 0x1a, 0x57, 0x0b, 0xcd, 0x1f, 0x3d, 0x7f, 0x59, 0xcf, 0xbd, 0x78, - 0x59, 0xcf, 0xbd, 0x7e, 0x59, 0x57, 0x7e, 0x33, 0xac, 0x2b, 0x7f, 0x1b, 0xd6, 0x95, 0xaf, 0x87, - 0x75, 0xe5, 0xf9, 0xb0, 0xae, 0xbc, 0x18, 0xd6, 0x95, 0xff, 0x0c, 0xeb, 0xca, 0xff, 0x86, 0xf5, - 0xdc, 0xeb, 0x61, 0x5d, 0xf9, 0xea, 0x55, 0x3d, 0xf7, 0xfc, 0x55, 0x3d, 0xf7, 0xe2, 0x55, 0x3d, - 0xf7, 0xf3, 0xbc, 0xf8, 0x89, 0xb7, 0xbb, 0x24, 0x2e, 0xea, 0xbb, 0xff, 0x0f, 0x00, 0x00, 0xff, - 0xff, 0xff, 0xf0, 0xbf, 0xb2, 0x46, 0x16, 0x00, 0x00, + // 1740 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0xcf, 0x6f, 0x23, 0x49, + 0x15, 0x76, 0x4f, 0xc6, 0xb1, 0x5d, 0x8e, 0x63, 0xbb, 0xf2, 0xab, 0x27, 0xb3, 0xe3, 0x36, 0x01, + 0xa4, 0xb0, 0x22, 0x89, 0x14, 0xb4, 0x12, 0x12, 0x02, 0x14, 0x27, 0x13, 0xd6, 0xec, 0x24, 0x6b, + 0xb5, 0x43, 0x24, 0xd0, 0x22, 0x51, 0xee, 0xae, 0xd8, 0xa5, 0xb4, 0xbb, 0x7a, 0xbb, 0xab, 0x93, + 0x09, 0x07, 0xc4, 0x01, 0x2e, 0x48, 0x2b, 0xad, 0x84, 0xc4, 0x95, 0x0b, 0x48, 0x88, 0x7f, 0x80, + 0x13, 0x27, 0x2e, 0x7b, 0x9c, 0xe3, 0x9c, 0x1a, 0xc6, 0x73, 0x00, 0xf5, 0x69, 0xff, 0x04, 0x54, + 0xd5, 0xdd, 0xee, 0xb2, 0xdd, 0x9e, 0xc9, 0xae, 0x64, 0xcd, 0x29, 0xe9, 0xef, 0xbd, 0xef, 0xab, + 0xd7, 0xd5, 0xaf, 0xde, 0xab, 0x67, 0x50, 0x1d, 0x62, 0x86, 0x5a, 0x16, 0x35, 0xae, 0xf7, 0x1d, + 0x97, 0x32, 0x0a, 0xf3, 0xe2, 0xcf, 0xf6, 0x5e, 0x9f, 0xb0, 0x81, 0xdf, 0xdb, 0x37, 0xe8, 0xf0, + 0xa0, 0x4f, 0xfb, 0xf4, 0x40, 0xc0, 0x3d, 0xff, 0x4a, 0x3c, 0x89, 0x07, 0xf1, 0x5f, 0xc4, 0xda, + 0x2e, 0xf7, 0x52, 0x89, 0xed, 0x8a, 0x78, 0xb8, 0x3c, 0x8c, 0x1e, 0x77, 0xfe, 0xfb, 0x00, 0x14, + 0x3b, 0x18, 0xbb, 0x27, 0x88, 0x21, 0x78, 0x00, 0x0a, 0x47, 0xa6, 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 0xba, 0x16, 0xe2, 0xb3, + 0x5a, 0x6d, 0x39, 0x01, 0x74, 0xde, 0x9e, 0xaf, 0x71, 0xad, 0xd0, 0xfa, 0xf1, 0x8b, 0x57, 0x8d, + 0xdc, 0xcb, 0x57, 0x8d, 0xdc, 0x97, 0xaf, 0x1a, 0xca, 0x6f, 0x47, 0x0d, 0xe5, 0x6f, 0xa3, 0x86, + 0xf2, 0xc5, 0xa8, 0xa1, 0xbc, 0x18, 0x35, 0x94, 0x97, 0xa3, 0x86, 0xf2, 0x9f, 0x51, 0x43, 0xf9, + 0xdf, 0xa8, 0x91, 0xfb, 0x72, 0xd4, 0x50, 0x3e, 0x7f, 0xdd, 0xc8, 0xbd, 0x78, 0xdd, 0xc8, 0xbd, + 0x7c, 0xdd, 0xc8, 0xfd, 0x22, 0x2f, 0x7e, 0x0d, 0xee, 0x2d, 0x8b, 0x8d, 0xfa, 0xde, 0xff, 0x03, + 0x00, 0x00, 0xff, 0xff, 0xa1, 0x60, 0x92, 0xd0, 0x71, 0x16, 0x00, 0x00, } func (x PeerAction) String() string { @@ -1036,6 +1045,9 @@ func (this *ShardData) Equal(that interface{}) bool { if !this.PreviousShardHeaderProof.Equal(that1.PreviousShardHeaderProof) { return false } + if this.Epoch != that1.Epoch { + return false + } return true } func (this *EpochStartShardData) Equal(that interface{}) bool { @@ -1333,7 +1345,7 @@ func (this *ShardData) GoString() string { if this == nil { return "nil" } - s := make([]string, 0, 19) + s := make([]string, 0, 20) s = append(s, "&block.ShardData{") s = append(s, "HeaderHash: "+fmt.Sprintf("%#v", this.HeaderHash)+",\n") if this.ShardMiniBlockHeaders != nil { @@ -1358,6 +1370,7 @@ func (this *ShardData) GoString() string { if this.PreviousShardHeaderProof != nil { s = append(s, "PreviousShardHeaderProof: "+fmt.Sprintf("%#v", this.PreviousShardHeaderProof)+",\n") } + s = append(s, "Epoch: "+fmt.Sprintf("%#v", this.Epoch)+",\n") s = append(s, "}") return strings.Join(s, "") } @@ -1561,6 +1574,13 @@ func (m *ShardData) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.Epoch != 0 { + i = encodeVarintMetaBlock(dAtA, i, uint64(m.Epoch)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x80 + } if m.PreviousShardHeaderProof != nil { { size, err := m.PreviousShardHeaderProof.MarshalToSizedBuffer(dAtA[:i]) @@ -2284,6 +2304,9 @@ func (m *ShardData) Size() (n int) { l = m.PreviousShardHeaderProof.Size() n += 1 + l + sovMetaBlock(uint64(l)) } + if m.Epoch != 0 { + n += 2 + sovMetaBlock(uint64(m.Epoch)) + } return n } @@ -2558,6 +2581,7 @@ func (this *ShardData) String() string { `LastIncludedMetaNonce:` + fmt.Sprintf("%v", this.LastIncludedMetaNonce) + `,`, `DeveloperFees:` + fmt.Sprintf("%v", this.DeveloperFees) + `,`, `PreviousShardHeaderProof:` + strings.Replace(fmt.Sprintf("%v", this.PreviousShardHeaderProof), "HeaderProof", "HeaderProof", 1) + `,`, + `Epoch:` + fmt.Sprintf("%v", this.Epoch) + `,`, `}`, }, "") return s @@ -3333,6 +3357,25 @@ func (m *ShardData) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 16: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType) + } + m.Epoch = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowMetaBlock + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Epoch |= uint32(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipMetaBlock(dAtA[iNdEx:]) diff --git a/data/block/metaBlock.proto b/data/block/metaBlock.proto index 211cc7e4..53c150cd 100644 --- a/data/block/metaBlock.proto +++ b/data/block/metaBlock.proto @@ -52,6 +52,7 @@ message ShardData { uint32 ShardID = 1 [(gogoproto.jsontag) = "shardID"]; uint32 TxCount = 7 [(gogoproto.jsontag) = "txCount"]; HeaderProof PreviousShardHeaderProof = 15 [(gogoproto.jsontag) = "previousHeaderProof,omitempty"]; + uint32 Epoch = 16 [(gogoproto.jsontag) = "epoch,omitempty"]; } // EpochStartShardData hold the last finalized headers hash and state root hash