From eeeff9ef02f9d07ebfdbdf8b2c1334fa450301c8 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Fri, 1 Mar 2019 16:56:52 +1100 Subject: [PATCH] Ensure chain-dumps come with earliest block first Previously dump.first() was the latest block. IMO, this is counter-intuitive --- beacon_node/beacon_chain/src/beacon_chain.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beacon_node/beacon_chain/src/beacon_chain.rs b/beacon_node/beacon_chain/src/beacon_chain.rs index 80cc79305..805ccc9fd 100644 --- a/beacon_node/beacon_chain/src/beacon_chain.rs +++ b/beacon_node/beacon_chain/src/beacon_chain.rs @@ -440,6 +440,8 @@ where last_slot = slot; } + dump.reverse(); + Ok(dump) }