From ddd46264c030d2eed3246fb0cd9a12fe4621815f Mon Sep 17 00:00:00 2001 From: Sorin Stanculeanu Date: Wed, 4 Dec 2024 12:54:59 +0200 Subject: [PATCH] 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, 0x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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, 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,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0xab, 0xa0, 0xcc, 0x91, 0x8e, 0x85, 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, + // 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, 0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08, 0x96, 0xdb, 0x2e, 0xbe, 0xd1, + 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, 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xd8, 0x7f, 0xd5, 0x47, 0x33, 0x57, 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, } 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