DERO-HE STARGATE Testnet Release10

This commit is contained in:
Captain 2021-02-23 11:00:07 +00:00
parent cb5f96b3c9
commit 28cc7479fe
No known key found for this signature in database
GPG Key ID: 18CDB3ED5E85D2D4
3 changed files with 12 additions and 3 deletions

View File

@ -20,4 +20,4 @@ import "github.com/blang/semver"
// right now it has to be manually changed
// 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")

View File

@ -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"})
}
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.ServeCodec(NewCBORServerCodec(rconn.ServerConn)) // use CBOR encoding on rpc
}()

View File

@ -33,7 +33,10 @@ func (connection *Connection) GetObject(request ObjectList, response *Objects) e
for i := range request.Block_list { // find the 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()
for j := range bl.Tx_hashes {
var tx_bytes []byte