aboutsummaryrefslogtreecommitdiffstats
path: root/pow/pow.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-10 23:45:16 +0800
committerobscuren <geffobscura@gmail.com>2014-12-10 23:45:16 +0800
commit1b98cbbfa4f587107fa15fccde7d22102ea4b1c0 (patch)
tree367be45e14b7d1a1ff3a62e0fdb949156e9cc71d /pow/pow.go
parent4082c8b61d1e9cc57d9da9b9da5c36ff84895d74 (diff)
downloaddexon-1b98cbbfa4f587107fa15fccde7d22102ea4b1c0.tar
dexon-1b98cbbfa4f587107fa15fccde7d22102ea4b1c0.tar.gz
dexon-1b98cbbfa4f587107fa15fccde7d22102ea4b1c0.tar.bz2
dexon-1b98cbbfa4f587107fa15fccde7d22102ea4b1c0.tar.lz
dexon-1b98cbbfa4f587107fa15fccde7d22102ea4b1c0.tar.xz
dexon-1b98cbbfa4f587107fa15fccde7d22102ea4b1c0.tar.zst
dexon-1b98cbbfa4f587107fa15fccde7d22102ea4b1c0.zip
Moved pow
Diffstat (limited to 'pow/pow.go')
-rw-r--r--pow/pow.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pow/pow.go b/pow/pow.go
new file mode 100644
index 000000000..c94ee40ba
--- /dev/null
+++ b/pow/pow.go
@@ -0,0 +1,8 @@
+package pow
+
+type PoW interface {
+ Search(block Block, stop <-chan struct{}) []byte
+ Verify(block Block) bool
+ GetHashrate() int64
+ Turbo(bool)
+}