forked from Qortal/qortal
transactionV5Timestamp moved to blockchain.json
This commit is contained in:
parent
c5093168b1
commit
c73cdefe6f
@ -68,7 +68,8 @@ public class BlockChain {
|
|||||||
atFindNextTransactionFix,
|
atFindNextTransactionFix,
|
||||||
newBlockSigHeight,
|
newBlockSigHeight,
|
||||||
shareBinFix,
|
shareBinFix,
|
||||||
calcChainWeightTimestamp;
|
calcChainWeightTimestamp,
|
||||||
|
transactionV5Timestamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Map of which blockchain features are enabled when (height/timestamp) */
|
/** Map of which blockchain features are enabled when (height/timestamp) */
|
||||||
@ -391,6 +392,10 @@ public class BlockChain {
|
|||||||
return this.featureTriggers.get(FeatureTrigger.calcChainWeightTimestamp.name()).longValue();
|
return this.featureTriggers.get(FeatureTrigger.calcChainWeightTimestamp.name()).longValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long getTransactionV5Timestamp() {
|
||||||
|
return this.featureTriggers.get(FeatureTrigger.transactionV5Timestamp.name()).longValue();
|
||||||
|
}
|
||||||
|
|
||||||
// More complex getters for aspects that change by height or timestamp
|
// More complex getters for aspects that change by height or timestamp
|
||||||
|
|
||||||
public long getRewardAtHeight(int ourHeight) {
|
public long getRewardAtHeight(int ourHeight) {
|
||||||
|
@ -393,7 +393,7 @@ public abstract class Transaction {
|
|||||||
* @return transaction version number
|
* @return transaction version number
|
||||||
*/
|
*/
|
||||||
public static int getVersionByTimestamp(long timestamp) {
|
public static int getVersionByTimestamp(long timestamp) {
|
||||||
if (timestamp >= 1642176000000L) {
|
if (timestamp >= BlockChain.getInstance().getTransactionV5Timestamp()) {
|
||||||
return 5;
|
return 5;
|
||||||
}
|
}
|
||||||
return 4;
|
return 4;
|
||||||
|
@ -53,7 +53,8 @@
|
|||||||
"atFindNextTransactionFix": 275000,
|
"atFindNextTransactionFix": 275000,
|
||||||
"newBlockSigHeight": 320000,
|
"newBlockSigHeight": 320000,
|
||||||
"shareBinFix": 399000,
|
"shareBinFix": 399000,
|
||||||
"calcChainWeightTimestamp": 1620579600000
|
"calcChainWeightTimestamp": 1620579600000,
|
||||||
|
"transactionV5Timestamp": 1642176000000
|
||||||
},
|
},
|
||||||
"genesisInfo": {
|
"genesisInfo": {
|
||||||
"version": 4,
|
"version": 4,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user