Comments (6)
@Sayeh-1337 This is probably due to the fact that you're trying to execute more than 60 messages requiring that only a max of 200,000 gas is used. What is suggest you to do is specify the gas amount based on the messages number:
gas = msgs.length * 200_000
from xenia.
The networks should not have this restriction and we can also see hundreds of txs are being committed. This is the current consensus parameters.
"consensus_params": {
"block": {
"max_bytes": "22020096",
"max_gas": "-1",
"time_iota_ms": "1000"
},
"evidence": {
"max_age_duration": "172800000000000",
"max_age_num_blocks": "100000"
},
"validator": {
"pub_key_types": [
"ed25519"
]
}
},
max_gas
is set to -1
which is no max gas limit. The spam is requesting 999,999,999
gas.
I think the tx should be able to put all the messages and broadcast without problem. @Sayeh-1337 how about you make the signed tx and send me to take a look?
from xenia.
@kwunyeung
this is stdMsg = { json: { account_number: '51088', chain_id: 'morpheus-10000', fee: { amount: [Array], gas: '200000' }, memo: 'Desmos Xenia Blessing !!', msgs: [ [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object] ], sequence: '38' }, bytes: [ 123, 34, 97, 99, 99, 111, 117, 110, 116, 95, 110, 117, 109, 98, 101, 114, 34, 58, 34, 53, 49, 48, 56, 56, 34, 44, 34, 99, 104, 97, 105, 110, 95, 105, 100, 34, 58, 34, 109, 111, 114, 112, 104, 101, 117, 115, 45, 49, 48, 48, 48, 48, 34, 44, 34, 102, 101, 101, 34, 58, 123, 34, 97, 109, 111, 117, 110, 116, 34, 58, 91, 123, 34, 97, 109, 111, 117, 110, 116, 34, 58, 34, 49, 48, 48, 48, 48, 34, 44, 34, 100, 101, 110, 111, 109, 34, 58, 34, 117, 100, ... 15587 more items ] }
Object = { type : "cosmos-sdk/MsgDelegate", value : { amount: { amount: String(amount), denom: denom }, delegator_address: *Address*, validator_address: *desmosvaloper...." } }
This is the Signed Msg = { tx: { msg: [ [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object] ], fee: { amount: [Array], gas: '200000' }, signatures: [ [Object] ], memo: 'Desmos Xenia Blessing !!' }, mode: 'sync' }
This signed Msg not processed by the network
from xenia.
@Sayeh-1337 please set the gas to a larger value like how the spam did 😅
from xenia.
@RiccardoM Thank you, worked like a charm 😃. also, it worked when I calculated the typical fees fees = gas * gas-prices
@kwunyeung I do it as the spam did it but with a higher fee than it 😁. this raises a question for me how the spam does it with a lower fee.
from xenia.
They either
- Set the
gas-prices
to0.000026udaric
, thefees
will be0.000026
*1,000,000,000
=26000udaric
. Or, - Don't set
gas-prices
and setfees
directly26000udaric
. This tx can then be broadcasted to any nodes withmin-gas-prices
set to""
.
Probably the 2nd option.
from xenia.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xenia.