Skip to content

Commit

Permalink
BUGFIX: expiration depth
Browse files Browse the repository at this point in the history
  • Loading branch information
fflo committed Oct 29, 2015
1 parent cc8e673 commit 460b86e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/611.cpp
Expand Up @@ -187,16 +187,18 @@ string stringFromVch(const vector<unsigned char> &vch) {
int GetExpirationDepth(int nHeight) {
if (nHeight < 18000)
return 18000;
if (nHeight < 126000)
return nHeight - 18000;
if (nHeight < 108000)
return nHeight;
return 108000;
}

// For display purposes, pass the name height.
int GetDisplayExpirationDepth(int nHeight) {
if (nHeight < 12000)
return 12000;
return 36000;
if (nHeight < 18000)
return 18000;
if (nHeight < 108000)
return nHeight;
return 108000;
}

int64 GetNetworkFee(int nHeight)
Expand Down

0 comments on commit 460b86e

Please sign in to comment.