DERO-HE STARGATE Testnet Release10
This commit is contained in:
parent
cb5f96b3c9
commit
28cc7479fe
@ -20,4 +20,4 @@ import "github.com/blang/semver"
|
|||||||
|
|
||||||
// right now it has to be manually changed
|
// right now it has to be manually changed
|
||||||
// do we need to include git commitsha??
|
// do we need to include git commitsha??
|
||||||
var Version = semver.MustParse("3.2.0-12.DEROHE.STARGATE+22022021")
|
var Version = semver.MustParse("3.2.0-14.DEROHE.STARGATE+23022021")
|
||||||
|
@ -411,7 +411,13 @@ func process_connection(conn net.Conn, remote_addr *net.TCPAddr, incoming, sync_
|
|||||||
c.logger = logger.WithFields(log.Fields{"RIP": remote_addr.String(), "DIR": "OUT"})
|
c.logger = logger.WithFields(log.Fields{"RIP": remote_addr.String(), "DIR": "OUT"})
|
||||||
}
|
}
|
||||||
go func() {
|
go func() {
|
||||||
defer globals.Recover()
|
//defer globals.Recover()
|
||||||
|
defer func() {
|
||||||
|
if r := recover(); r != nil {
|
||||||
|
rlog.Warnf("Recovered while handling connection, Stack trace below", r)
|
||||||
|
rlog.Warnf("Stack trace \n%s", debug.Stack())
|
||||||
|
}
|
||||||
|
}()
|
||||||
//RPCSERVER.ServeConn(rconn.ServerConn) // start single threaded rpc server with GOB encoding
|
//RPCSERVER.ServeConn(rconn.ServerConn) // start single threaded rpc server with GOB encoding
|
||||||
RPCSERVER.ServeCodec(NewCBORServerCodec(rconn.ServerConn)) // use CBOR encoding on rpc
|
RPCSERVER.ServeCodec(NewCBORServerCodec(rconn.ServerConn)) // use CBOR encoding on rpc
|
||||||
}()
|
}()
|
||||||
|
@ -33,7 +33,10 @@ func (connection *Connection) GetObject(request ObjectList, response *Objects) e
|
|||||||
|
|
||||||
for i := range request.Block_list { // find the block
|
for i := range request.Block_list { // find the block
|
||||||
var cbl Complete_Block
|
var cbl Complete_Block
|
||||||
bl, _ := chain.Load_BL_FROM_ID(request.Block_list[i])
|
bl, err := chain.Load_BL_FROM_ID(request.Block_list[i])
|
||||||
|
if err != nil{
|
||||||
|
return err
|
||||||
|
}
|
||||||
cbl.Block = bl.Serialize()
|
cbl.Block = bl.Serialize()
|
||||||
for j := range bl.Tx_hashes {
|
for j := range bl.Tx_hashes {
|
||||||
var tx_bytes []byte
|
var tx_bytes []byte
|
||||||
|
Loading…
x
Reference in New Issue
Block a user