@@ -559,9 +559,9 @@ func (h *ByronEpochBoundaryBlockHeader) Era() common.Era {
559
559
type ByronMainBlock struct {
560
560
cbor.StructAsArray
561
561
cbor.DecodeStoreCbor
562
- Header * ByronMainBlockHeader
563
- Body ByronMainBlockBody
564
- Extra []interface {}
562
+ BlockHeader * ByronMainBlockHeader
563
+ Body ByronMainBlockBody
564
+ Extra []interface {}
565
565
}
566
566
567
567
func (b * ByronMainBlock ) UnmarshalCBOR (cborData []byte ) error {
@@ -574,31 +574,35 @@ func (ByronMainBlock) Type() int {
574
574
}
575
575
576
576
func (b * ByronMainBlock ) Hash () string {
577
- return b .Header .Hash ()
577
+ return b .BlockHeader .Hash ()
578
+ }
579
+
580
+ func (b * ByronMainBlock ) Header () common.BlockHeader {
581
+ return b .BlockHeader
578
582
}
579
583
580
584
func (b * ByronMainBlock ) PrevHash () string {
581
- return b .Header .PrevHash ()
585
+ return b .BlockHeader .PrevHash ()
582
586
}
583
587
584
588
func (b * ByronMainBlock ) BlockNumber () uint64 {
585
- return b .Header .BlockNumber ()
589
+ return b .BlockHeader .BlockNumber ()
586
590
}
587
591
588
592
func (b * ByronMainBlock ) SlotNumber () uint64 {
589
- return b .Header .SlotNumber ()
593
+ return b .BlockHeader .SlotNumber ()
590
594
}
591
595
592
596
func (b * ByronMainBlock ) IssuerVkey () common.IssuerVkey {
593
- return b .Header .IssuerVkey ()
597
+ return b .BlockHeader .IssuerVkey ()
594
598
}
595
599
596
600
func (b * ByronMainBlock ) BlockBodySize () uint64 {
597
601
return uint64 (len (b .Body .Cbor ()))
598
602
}
599
603
600
604
func (b * ByronMainBlock ) Era () common.Era {
601
- return b .Header .Era ()
605
+ return b .BlockHeader .Era ()
602
606
}
603
607
604
608
func (b * ByronMainBlock ) Transactions () []common.Transaction {
@@ -617,9 +621,9 @@ func (b *ByronMainBlock) Utxorpc() *utxorpc.Block {
617
621
type ByronEpochBoundaryBlock struct {
618
622
cbor.StructAsArray
619
623
cbor.DecodeStoreCbor
620
- Header * ByronEpochBoundaryBlockHeader
621
- Body []common.Blake2b224
622
- Extra []interface {}
624
+ BlockHeader * ByronEpochBoundaryBlockHeader
625
+ Body []common.Blake2b224
626
+ Extra []interface {}
623
627
}
624
628
625
629
func (b * ByronEpochBoundaryBlock ) UnmarshalCBOR (cborData []byte ) error {
@@ -632,23 +636,27 @@ func (ByronEpochBoundaryBlock) Type() int {
632
636
}
633
637
634
638
func (b * ByronEpochBoundaryBlock ) Hash () string {
635
- return b .Header .Hash ()
639
+ return b .BlockHeader .Hash ()
640
+ }
641
+
642
+ func (b * ByronEpochBoundaryBlock ) Header () common.BlockHeader {
643
+ return b .BlockHeader
636
644
}
637
645
638
646
func (b * ByronEpochBoundaryBlock ) PrevHash () string {
639
- return b .Header .PrevHash ()
647
+ return b .BlockHeader .PrevHash ()
640
648
}
641
649
642
650
func (b * ByronEpochBoundaryBlock ) BlockNumber () uint64 {
643
- return b .Header .BlockNumber ()
651
+ return b .BlockHeader .BlockNumber ()
644
652
}
645
653
646
654
func (b * ByronEpochBoundaryBlock ) SlotNumber () uint64 {
647
- return b .Header .SlotNumber ()
655
+ return b .BlockHeader .SlotNumber ()
648
656
}
649
657
650
658
func (b * ByronEpochBoundaryBlock ) IssuerVkey () common.IssuerVkey {
651
- return b .Header .IssuerVkey ()
659
+ return b .BlockHeader .IssuerVkey ()
652
660
}
653
661
654
662
func (b * ByronEpochBoundaryBlock ) BlockBodySize () uint64 {
@@ -657,7 +665,7 @@ func (b *ByronEpochBoundaryBlock) BlockBodySize() uint64 {
657
665
}
658
666
659
667
func (b * ByronEpochBoundaryBlock ) Era () common.Era {
660
- return b .Header .Era ()
668
+ return b .BlockHeader .Era ()
661
669
}
662
670
663
671
func (b * ByronEpochBoundaryBlock ) Transactions () []common.Transaction {
0 commit comments