File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
mithril-common/src/chain_observer Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -382,7 +382,9 @@ impl CardanoCliChainObserver {
382
382
. ok_or ( ChainObserverError :: InvalidContent (
383
383
format ! ( "Stake could not be converted to integer for {pool_id_bech32}" ) . into ( ) ,
384
384
) ) ?;
385
- stake_distribution. insert ( pool_id_bech32, stakes) ;
385
+ if stakes > 0 {
386
+ stake_distribution. insert ( pool_id_bech32, stakes) ;
387
+ }
386
388
}
387
389
388
390
Ok ( Some ( stake_distribution) )
@@ -605,6 +607,11 @@ pool1qz2vzszautc2c8mljnqre2857dpmheq7kgt6vav0s38tvvhxm6w 1.051e-6
605
607
"stakeGo": 1200000000000,
606
608
"stakeMark": 1200000000001,
607
609
"stakeSet": 1200000000002
610
+ },
611
+ "00000ffff93effbf3ce788aebd3e7506b80322bd3995ad432e61fad5": {
612
+ "stakeGo": 0,
613
+ "stakeMark": 0,
614
+ "stakeSet": 1300000000002
608
615
}
609
616
},
610
617
"total": {
You can’t perform that action at this time.
0 commit comments