From f8f879f89313f175f50dcf18254176a7573c75e7 Mon Sep 17 00:00:00 2001 From: Raul Jordan Date: Wed, 9 May 2018 17:35:32 -0400 Subject: [PATCH] sharding: use new header.EncodeRLP method Former-commit-id: cf610c419a0c56c5257201274eea5cf0345d44ad [formerly b90bb344e2165eecc015f6174dd065abc7365b81] Former-commit-id: 048f0c5a50c1818c7967a7ffa08f61d22b8a6aef --- sharding/shard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharding/shard.go b/sharding/shard.go index 0cde3b2f6..2126fcd44 100644 --- a/sharding/shard.go +++ b/sharding/shard.go @@ -194,7 +194,7 @@ func (s *Shard) SetCanonical(header *CollationHeader) error { return err } key := canonicalCollationLookupKey(dbHeader.ShardID(), dbHeader.Period()) - encoded, err := rlp.EncodeToBytes(dbHeader) + encoded, err := dbHeader.EncodeRLP() if err != nil { return fmt.Errorf("cannot encode header: %v", err) }