mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 19:40:36 +00:00
Removed dagger broadcasting to the net
This commit is contained in:
parent
aed060a4ce
commit
ddf82c3337
@ -65,7 +65,8 @@ func main() {
|
|||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
res := dagger.Search(ethutil.Big("01001"), ethutil.BigPow(2, 36))
|
res := dagger.Search(ethutil.Big("01001"), ethutil.BigPow(2, 36))
|
||||||
server.Broadcast("blockmine", ethutil.Encode(res.String()))
|
log.Println("Res dagger", res)
|
||||||
|
//server.Broadcast("blockmine", ethutil.Encode(res.String()))
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
@ -16,11 +16,11 @@ func Testing() {
|
|||||||
bm := NewBlockManager()
|
bm := NewBlockManager()
|
||||||
|
|
||||||
tx := NewTransaction("\x00", 20, []string{"PUSH"})
|
tx := NewTransaction("\x00", 20, []string{"PUSH"})
|
||||||
txData := tx.MarshalRlp()
|
txData := tx.RlpEncode()
|
||||||
//fmt.Printf("%q\n", txData)
|
//fmt.Printf("%q\n", txData)
|
||||||
|
|
||||||
copyTx := &Transaction{}
|
copyTx := &Transaction{}
|
||||||
copyTx.UnmarshalRlp(txData)
|
copyTx.RlpDecode(txData)
|
||||||
//fmt.Println(tx)
|
//fmt.Println(tx)
|
||||||
//fmt.Println(copyTx)
|
//fmt.Println(copyTx)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user