aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei-Ning Huang <w@byzantine-lab.io>2019-08-26 23:09:21 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-09-17 16:57:31 +0800
commit757817cc1587a00cf00463b7c0b71aadad5c0336 (patch)
treea6ca2da6c4969e882a06b34f324eaaa24048b3f6
parentb91351e4b03de9aed53d7b323a873926afe2491f (diff)
downloadgo-tangerine-757817cc1587a00cf00463b7c0b71aadad5c0336.tar
go-tangerine-757817cc1587a00cf00463b7c0b71aadad5c0336.tar.gz
go-tangerine-757817cc1587a00cf00463b7c0b71aadad5c0336.tar.bz2
go-tangerine-757817cc1587a00cf00463b7c0b71aadad5c0336.tar.lz
go-tangerine-757817cc1587a00cf00463b7c0b71aadad5c0336.tar.xz
go-tangerine-757817cc1587a00cf00463b7c0b71aadad5c0336.tar.zst
go-tangerine-757817cc1587a00cf00463b7c0b71aadad5c0336.zip
core: vm: allow unstake empty staked node
-rw-r--r--core/vm/oracle_contracts.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm/oracle_contracts.go b/core/vm/oracle_contracts.go
index 296d6fd4f..23a005269 100644
--- a/core/vm/oracle_contracts.go
+++ b/core/vm/oracle_contracts.go
@@ -2043,7 +2043,7 @@ func (g *GovernanceContract) withdrawable() bool {
}
// Can not withdraw if there are no pending withdrawal.
- if node.Unstaked.Cmp(big.NewInt(0)) == 0 {
+ if node.UnstakedAt.Cmp(big.NewInt(0)) == 0 {
return false
}