From 868231adc751daa1d0661dfa8764d7b8bfb69c8d Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 9 Jun 2021 17:09:03 -0700 Subject: [PATCH] fix(lotus-sim): don't take from the fund account when funding --- cmd/lotus-sim/simulation/funding.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/lotus-sim/simulation/funding.go b/cmd/lotus-sim/simulation/funding.go index 1d57d8d0f..1648a0be9 100644 --- a/cmd/lotus-sim/simulation/funding.go +++ b/cmd/lotus-sim/simulation/funding.go @@ -90,6 +90,10 @@ func (ss *simulationState) packFunding(ctx context.Context, cb packFunc) (_err e var targets []*actor err = st.ForEach(func(addr address.Address, act *types.Actor) error { + // Don't steal from ourselves! + if addr == fundAccount { + return nil + } if act.Balance.LessThan(taxMin) { return nil }