-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move classes into ergo-core to satisfy NipopowProof and NipopowVerifi…
…er requirements
- Loading branch information
Showing
66 changed files
with
280 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
ergo-core/src/main/scala/org/ergoplatform/mining/difficulty/DifficultyAdjustment.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
ergo-core/src/main/scala/org/ergoplatform/nodeView/history/ErgoHistoryConstants.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.ergoplatform.nodeView.history | ||
|
||
import org.ergoplatform.ErgoLikeContext | ||
|
||
object ErgoHistoryConstants { | ||
/** | ||
* Type for time, represents machine-specific timestamp of a transaction | ||
* or block section, as miliseconds passed since beginning of UNIX | ||
* epoch on the machine | ||
*/ | ||
type Time = Long | ||
|
||
type Height = ErgoLikeContext.Height // Int | ||
type Score = BigInt | ||
type Difficulty = BigInt | ||
type NBits = Long | ||
|
||
val CharsetName = "UTF-8" | ||
|
||
val EmptyHistoryHeight: Int = 0 | ||
val GenesisHeight: Int = EmptyHistoryHeight + 1 // first block has height == 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.