DERO-HE STARGATE Mainnet Release45
This commit is contained in:
parent
45bf8db024
commit
7f180ddbae
@ -2,6 +2,7 @@ package astrobwt
|
||||
|
||||
import "fmt"
|
||||
import "unsafe"
|
||||
import "crypto/rand"
|
||||
import "encoding/binary"
|
||||
import "golang.org/x/crypto/sha3"
|
||||
import "golang.org/x/crypto/salsa20/salsa"
|
||||
@ -13,6 +14,15 @@ var x = fmt.Sprintf
|
||||
const stage1_length int = 9973 // it is a prime
|
||||
|
||||
func POW16(inputdata []byte) (outputhash [32]byte) {
|
||||
|
||||
defer func() {
|
||||
if r := recover(); r != nil { // if something happens due to RAM issues in miner, we should continue, system will crash sooner or later
|
||||
var buf [16]byte
|
||||
rand.Read(buf[:])
|
||||
outputhash = sha3.Sum256(buf[:]) // return a falsified has which will fail the check
|
||||
}
|
||||
}()
|
||||
|
||||
var counter [16]byte
|
||||
|
||||
key := sha3.Sum256(inputdata)
|
||||
|
@ -119,6 +119,7 @@ func SendJob() {
|
||||
if !v.valid_address && !chain.IsAddressHashValid(false, v.address_sum) {
|
||||
params.LastError = "unregistered miner or you need to wait 15 mins"
|
||||
} else {
|
||||
params.LastError = ""
|
||||
v.valid_address = true
|
||||
}
|
||||
params.Blockhashing_blob = fmt.Sprintf("%x", mbl.Serialize())
|
||||
|
@ -4,7 +4,7 @@
|
||||
<a href="https://github.com/deroproject/">DERO explorer source code</a>
|
||||
| explorer version (api): under development (1.0)
|
||||
| dero version: golang pre-alpha
|
||||
| Copyright 2017-2021 Dero Project
|
||||
| Copyright 2017-2022 Dero Project
|
||||
</h6>
|
||||
</div>
|
||||
</body>
|
||||
|
@ -20,4 +20,4 @@ import "github.com/blang/semver/v4"
|
||||
|
||||
// right now it has to be manually changed
|
||||
// do we need to include git commitsha??
|
||||
var Version = semver.MustParse("3.4.118-0.DEROHE.STARGATE+26022022")
|
||||
var Version = semver.MustParse("3.4.120-0.DEROHE.STARGATE+26022022")
|
||||
|
Loading…
Reference in New Issue
Block a user