com
.
mchange
.
sc
.
v1
.
consuela
.
ethereum
.
pow
.
ethash23
.
Implementation
UInt32AsInt
class
UInt32AsInt
extends
Implementation
Linear Supertypes
Implementation
,
AnyRef
,
Any
Known Subclasses
LoggingParallelUInt32AsInt
,
LoggingSequentialUInt32AsInt
,
ParallelUInt32AsInt
,
SequentialUInt32AsInt
Ordering
Alphabetic
By inheritance
Inherited
UInt32AsInt
Implementation
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Instance Constructors
new
UInt32AsInt
()
Type Members
type
Cache
=
Array
[
Array
[
Int
]]
Definition Classes
UInt32AsInt
→
Implementation
type
Dataset
=
Array
[
Array
[
Int
]]
Definition Classes
UInt32AsInt
→
Implementation
type
Row
=
Array
[
Int
]
Definition Classes
UInt32AsInt
→
Implementation
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
blocksRemainingInEpoch
(
blockNumber:
Long
)
:
Long
Definition Classes
Implementation
def
cacheDataset
(
seed:
Array
[
Byte
]
,
dataset:
Dataset
)
:
Failable
[
Unit
]
Definition Classes
Implementation
def
calcDataset
(
cache:
Cache
,
fullSize:
Long
)
(
implicit
mf:
Factory
)
:
Dataset
Definition Classes
Implementation
def
calcDatasetForBlock
(
blockNumber:
Long
)
(
implicit
mf:
Factory
)
:
Dataset
Definition Classes
Implementation
def
calcDatasetForEpoch
(
epochNumber:
Long
)
(
implicit
mf:
Factory
)
:
Dataset
Definition Classes
Implementation
final
def
calcDatasetParallel
(
cache:
Cache
,
fullSize:
Long
)
(
mf:
Factory
)
:
Dataset
Attributes
protected[
com.mchange.sc.v1.consuela.ethereum.pow.ethash23
]
Definition Classes
Implementation
def
calcDatasetRow
(
cache:
Cache
,
i:
Int
)
:
Row
Attributes
protected[
com.mchange.sc.v1.consuela.ethereum.pow.ethash23
]
Definition Classes
UInt32AsInt
→
Implementation
final
def
calcDatasetSequential
(
cache:
Cache
,
fullSize:
Long
)
(
mf:
Factory
)
:
Dataset
Attributes
protected[
com.mchange.sc.v1.consuela.ethereum.pow.ethash23
]
Definition Classes
Implementation
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
datasetLen
(
fullSize:
Long
)
:
Int
Attributes
protected[
com.mchange.sc.v1.consuela.ethereum.pow.ethash23
]
Definition Classes
Implementation
def
doCalcDataset
(
cache:
Cache
,
fullSize:
Long
)
(
mf:
Factory
)
:
Dataset
Attributes
protected[
com.mchange.sc.v1.consuela.ethereum.pow.ethash23
]
Definition Classes
Implementation
def
dumpDatasetBytes
(
os:
OutputStream
,
dataset:
Dataset
)
:
Unit
Definition Classes
UInt32AsInt
→
Implementation
def
epochFromBlock
(
blockNumber:
Long
)
:
Long
Definition Classes
Implementation
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
extractDatasetRow
(
dataset:
Dataset
,
i:
Int
)
:
Row
Attributes
protected[
com.mchange.sc.v1.consuela.ethereum.pow.ethash23
]
Definition Classes
UInt32AsInt
→
Implementation
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
def
getCacheSizeForBlock
(
blockNumber:
Long
)
:
Long
Definition Classes
Implementation
def
getCacheSizeForEpoch
(
epochNumber:
Long
)
:
Long
Definition Classes
Implementation
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
getFullSizeForBlock
(
blockNumber:
Long
)
:
Long
Definition Classes
Implementation
def
getFullSizeForEpoch
(
epochNumber:
Long
)
:
Long
Definition Classes
Implementation
def
hashCache
(
cache:
Cache
)
:
SHA3_256
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
def
hashimoto
(
seedBytes:
Array
[
Byte
]
,
fullSize:
Long
,
datasetAccessor: (
Int
) ⇒
Row
)
:
Hashimoto
Attributes
protected
Definition Classes
UInt32AsInt
→
Implementation
def
hashimotoFull
(
header:
Header
,
dataset:
Dataset
,
nonce:
Unsigned64
)
:
Hashimoto
Definition Classes
Implementation
def
hashimotoLight
(
header:
Header
,
cache:
Cache
,
nonce:
Unsigned64
)
:
Hashimoto
Definition Classes
Implementation
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
val
isParallel
:
Boolean
Attributes
protected[
com.mchange.sc.v1.consuela.ethereum.pow.ethash23
]
Definition Classes
Implementation
def
loadDagFile
(
seed:
Array
[
Byte
]
)
:
Failable
[
Dataset
]
Definition Classes
Implementation
def
mkCache
(
cacheSize:
Long
,
seed:
Array
[
Byte
]
)
:
Cache
Attributes
protected
Definition Classes
UInt32AsInt
→
Implementation
def
mkCacheForBlock
(
blockNumber:
Long
)
:
Cache
Definition Classes
Implementation
def
mkCacheForEpoch
(
epochNumber:
Long
)
:
Cache
Definition Classes
Implementation
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
precomputeCacheDatasetForBlockNumber
(
blockNumber:
Long
)
(
implicit
mf:
Factory
)
:
Failable
[
Unit
]
Definition Classes
Implementation
def
precomputeCacheDatasetForEpochNumber
(
epochNumber:
Long
)
(
implicit
mf:
Factory
)
:
Failable
[
Unit
]
Definition Classes
Implementation
def
readDagFile
(
is:
InputStream
,
mbFileLength:
Option
[
Long
]
)
:
Dataset
Definition Classes
Implementation
def
readDatasetBytes
(
is:
InputStream
,
mbDatasetLen:
Option
[
Long
]
)
:
Dataset
Definition Classes
UInt32AsInt
→
Implementation
def
requireValidInt
(
l:
Long
)
:
Int
Attributes
protected[
com.mchange.sc.v1.consuela.ethereum.pow.ethash23
]
Definition Classes
Implementation
def
requireValidLong
(
bi:
BigInt
)
:
Long
Attributes
protected[
com.mchange.sc.v1.consuela.ethereum.pow.ethash23
]
Definition Classes
Implementation
implicit
val
rowClassTag
:
ClassTag
[
Row
]
Attributes
protected
Definition Classes
UInt32AsInt
→
Implementation
def
streamDagFileForBlockNumber
(
blockNumber:
Long
,
file:
Option
[
File
]
)
(
implicit
mf:
Factory
)
:
Failable
[
Unit
]
Definition Classes
Implementation
def
streamDagFileForBlockNumber
(
blockNumber:
Long
)
(
implicit
mf:
Factory
)
:
Failable
[
Unit
]
Definition Classes
Implementation
def
streamDagFileForEpochNumber
(
epochNumber:
Long
,
mbSeed:
Option
[
Array
[
Byte
]]
,
mbCache:
Option
[
Cache
]
,
mbFile:
Option
[
File
]
)
(
implicit
mf:
Factory
)
:
Failable
[
Unit
]
Definition Classes
Implementation
def
streamDagFileForEpochNumber
(
epochNumber:
Long
,
mbFile:
Option
[
File
]
)
(
implicit
mf:
Factory
)
:
Failable
[
Unit
]
Definition Classes
Implementation
def
streamDagFileForEpochNumber
(
epochNumber:
Long
)
(
implicit
mf:
Factory
)
:
Failable
[
Unit
]
Definition Classes
Implementation
def
streamDatasetAsDagFile
(
os:
OutputStream
,
cache:
Cache
,
fullSize:
Long
)
(
implicit
mf:
Factory
)
:
Unit
Definition Classes
Implementation
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toDataset
(
array:
Array
[
Row
]
)
:
Dataset
Attributes
protected[
com.mchange.sc.v1.consuela.ethereum.pow.ethash23
]
Definition Classes
UInt32AsInt
→
Implementation
def
toString
()
:
String
Definition Classes
AnyRef → Any
def
truncatedHeaderHash
(
header:
Header
)
:
SHA3_256
Definition Classes
Implementation
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
writeDagFile
(
os:
OutputStream
,
dataset:
Dataset
)
:
Unit
Definition Classes
Implementation
def
writeRow
(
in:
Row
)
:
Array
[
Byte
]
Attributes
protected
Definition Classes
UInt32AsInt
→
Implementation
Inherited from
Implementation
Inherited from
AnyRef
Inherited from
Any
Ungrouped