Skip to content

Commit

Permalink
Don't dump empty accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
orkunkl committed May 25, 2020
1 parent f79fd8d commit a17ea21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 57 deletions.
57 changes: 0 additions & 57 deletions cmd/dumpstate/cash.gold.json
Expand Up @@ -45,9 +45,6 @@
}
]
},
{
"address": "iov1q2hqkj7j9ld2t74gx2xdn655d6p0akzv5czgk9"
},
{
"address": "iov1qvv9ykvapky43xlsjl90nnd7n533ty6x7ysxt5",
"coins": [
Expand All @@ -58,9 +55,6 @@
}
]
},
{
"address": "iov1qv59u0fh0523xux4u72zcar5hxkgqljpxztrlf"
},
{
"address": "iov1qwh25eedvp3wfajfr5mr2mevcqq0yasg7qpssd",
"coins": [
Expand Down Expand Up @@ -155,9 +149,6 @@
}
]
},
{
"address": "iov1p9jtp4k6kugyxsl7xh74d66zxpr50fsphjytnf"
},
{
"address": "iov1psjk38fdzxtx6ypsm5u5ujnt6dken4kfelja24",
"coins": [
Expand Down Expand Up @@ -273,9 +264,6 @@
}
]
},
{
"address": "iov1zkmrkzqz7qqdv88tf4qzgmhp068gvjxpu3c6zm"
},
{
"address": "iov1zany7d93q5sxatu49uv9yfhh3m4zvghk3jkz8k",
"coins": [
Expand Down Expand Up @@ -407,9 +395,6 @@
}
]
},
{
"address": "iov1ygg5yewvjx04u60x8rmugeh60tl5gsytpelsht"
},
{
"address": "iov1y28greeet7d58pkyxqpqy0kvy4lg35rc4h4d3c",
"coins": [
Expand Down Expand Up @@ -467,9 +452,6 @@
}
]
},
{
"address": "iov19ra8qeq9a03d8xsp3n6h7f3np3xafa7a8gp33g"
},
{
"address": "iov198exf2zle3tzyuntmwsxfdpd26kya50d2gxdmc",
"coins": [
Expand Down Expand Up @@ -1056,9 +1038,6 @@
}
]
},
{
"address": "iov1tkzevysmhmsxjq037u5hegryz80ar4rar0r43n"
},
{
"address": "iov1th4kxlwwpv3ldj4aw539hyrqjv65nwm24ujt7s",
"coins": [
Expand Down Expand Up @@ -1187,9 +1166,6 @@
}
]
},
{
"address": "iov1vcw7u03a9dyyytdts79nkkct063f3m5nzmxd5a"
},
{
"address": "iov1vu07klvxm34m8uv2ar2k0as4dzjdl93sthf88t",
"coins": [
Expand Down Expand Up @@ -1217,9 +1193,6 @@
}
]
},
{
"address": "iov1dzvzzu5j6esswe3aglrhhh9608jkf3kaqqcakp"
},
{
"address": "iov1dxxapqqj6750qzm5760ell4gy8xz8pnhfjq2vs",
"coins": [
Expand Down Expand Up @@ -1837,9 +1810,6 @@
}
]
},
{
"address": "iov14g4d5ep3m3z5pmcgpguetmyjk9pucfrkhztj2j"
},
{
"address": "iov14fuk58dauv3ut0xtmft4z0yanhyup8pz4h7j29",
"coins": [
Expand Down Expand Up @@ -1932,9 +1902,6 @@
}
]
},
{
"address": "iov1kn7ls82g5h20zgf28ugdcx4srqh87hnrejel92"
},
{
"address": "iov1k4dpknrrf4dfm07avau0mmjkrsm6pu863d30us",
"coins": [
Expand Down Expand Up @@ -2038,9 +2005,6 @@
}
]
},
{
"address": "iov1c9eprq0gxdmwl9u25j568zj7ylqgc7aj2fw2xj"
},
{
"address": "iov1cfv77dzp9a2zg2nfpndwhlpccdp9pudpu4cx47",
"coins": [
Expand Down Expand Up @@ -2098,9 +2062,6 @@
}
]
},
{
"address": "iov1cmvug0h4wsstwl42994z8c8uewcxk3f59nsux6"
},
{
"address": "iov1cmaamnlgyx4nklunyv02380ejyvp5sha6we4j8",
"coins": [
Expand Down Expand Up @@ -2304,9 +2265,6 @@
}
]
},
{
"address": "iov168ma8c7vf48l3w2qjrtzjrqc7p0d2v2qgk5363"
},
{
"address": "iov1627rjx0ny2x7p2cyhvq698jje3767wy5svwksn",
"coins": [
Expand All @@ -2316,9 +2274,6 @@
}
]
},
{
"address": "iov16jxqgk5lxst6azsl6u9cwzrr54a7tfv9haggrt"
},
{
"address": "iov16j0y508m6jdm558qce7j84x7l7j93wzesq88rl",
"coins": [
Expand Down Expand Up @@ -2506,9 +2461,6 @@
}
]
},
{
"address": "iov1ua6tdcyw8jddn5660qcx2ndhjp4skqk4dkurrl"
},
{
"address": "iov1arn4tqnknn7mq5j4yr6fm3jy89vx05sdlc80h4",
"coins": [
Expand Down Expand Up @@ -2647,9 +2599,6 @@
}
]
},
{
"address": "iov17s838rgv5aw2jgsjekfxgfszslmft6qg05qut6"
},
{
"address": "iov173arhwsd632w7kx2h0hwn9xs4uxpwpw5snklxn",
"coins": [
Expand All @@ -2660,9 +2609,6 @@
}
]
},
{
"address": "iov17mtxvt3tl5088z57f9zg9367ha5jyr9d0emvjf"
},
{
"address": "iov17ltwgwrustmd275dk6fd0f7argyp8c2yxe377q",
"coins": [
Expand Down Expand Up @@ -2692,9 +2638,6 @@
}
]
},
{
"address": "iov1lfcwrrvaq2c769hayqjhc23a5xurmtujaewpug"
},
{
"address": "iov1lvsxea0htn42tus74x6pultnt9edzsmu36xwm5",
"coins": [
Expand Down
3 changes: 3 additions & 0 deletions cmd/dumpstate/dumpstate.go
Expand Up @@ -259,6 +259,9 @@ func extractWallets(store *app.CommitStore) ([]genesisAccount, error) {
var w cash.Set
switch key, err := it.Next(store.CheckStore(), &w); {
case err == nil:
if w.Coins == nil {
continue
}
s := cash.Set{
Coins: w.Coins,
}
Expand Down

0 comments on commit a17ea21

Please sign in to comment.