max addr length for large opreturn sys txs

pull/541/head
sidhujag 2020-09-21 20:46:05 -07:00
parent 39b9fe79d6
commit 38b1508734
2 changed files with 2 additions and 3 deletions

View File

@ -27,7 +27,7 @@ const (
SYSCOIN_TX_VERSION_ALLOCATION_MINT int32 = 133
SYSCOIN_TX_VERSION_ALLOCATION_BURN_TO_ETHEREUM int32 = 134
SYSCOIN_TX_VERSION_ALLOCATION_SEND int32 = 135
maxAddrDescLen = 1024
maxAddrDescLen = 10000
)
// chain parameters
@ -71,7 +71,7 @@ func NewSyscoinParser(params *chaincfg.Params, c *btc.Configuration) *SyscoinPar
// matches max data carrier for systx
func (p *SyscoinParser) GetMaxAddrLength() int {
return 8000
return maxAddrDescLen
}
// GetChainParams returns network parameters

View File

@ -24,7 +24,6 @@ import (
const dbVersion = 5
const maxAddrDescLen = 1024
// iterator creates snapshot, which takes lots of resources
// when doing huge scan, it is better to close it and reopen from time to time to free the resources
const refreshIterator = 5000000