mcohen
6 months ago  Karma: 35
Testing with Loom

I'm working on a truffle-loom project using this example and I'm wondering how to run my truffle tests through Loom. When I run truffle test, I don't think my tests are being run with the benefit of the sidechain. How do I approach this?

en
#DApp
Loom
#loom network
#loom-provider
mcohen
6 months ago  Karma: 35
Testing with Loom

I'm working on a truffle-loom project using this example and I'm wondering how to run my truffle tests through Loom. When I run truffle test, I don't think my tests are being run with the benefit of the sidechain. How do I approach this?

en
#DApp
Loom
#loom network
#loom-provider

2 ANSWERS
kaijchang2
6 months ago Karma: 19856

At this point, I think that truffle test should be sufficient as there aren't that many architectural differences between Ethereum blockchains and LOOM blockchains.

At this point, I think that truffle test should be sufficient as there aren't that many architectural differences between Ethereum blockchains and LOOM blockchains.

mcohen

So, if a function runs out of gas on Ethereum, it'll run out on Loom?

I'm trying to write a method that analyzes the results of a contest. It doesn't need to sort the whole set (I know sorting is tough on the VM), but it needs to analyze and iterate through a whole set of scores. Not quite clear to me whether Loom offers this type of scalability, or whether the "scalability" is more with respect to removing friction from the network?

Jul 29 '18 at 4:08 am
kaijchang2

I see what you mean, that is a pretty big difference. I too am not sure if they allow these type of normally gas heavy transactions.

Jul 29 '18 at 3:17 pm
mcohen

Do you know of a sidechain implementation built specifically for higher load functionality like sorting? I sort of thought that this was a key feature of sidechains/dappchains

Jul 29 '18 at 3:48 pm
kaijchang2

I'm pretty sure that if you're running your own instance of the LOOM SDK and not on Zombiechain, you should be able to have these types of transactions.

Jul 29 '18 at 6:24 pm
alain_duclos9952
6 months ago Karma: 206

Sidechains can be customized for the performance/decentralization tradeoff that suits your needs. Hence, transactions can be feeless which means there's no risk to run out of gas. For example, think about this website. Even if it runs on top of a Loom sidechain, there are no transaction fees. This highly improves usability.
However, even if Loom sidechains are designed for high scalability, it is not a bad idea to move computing intensive tasks off-chain.

Sidechains can be customized for the performance/decentralization tradeoff that suits your needs. Hence, transactions can be feeless which means there's no risk to run out of gas. For example, think about this website. Even if it runs on top of a Loom sidechain, there are no transaction fees. This highly improves usability.
However, even if Loom sidechains are designed for high scalability, it is not a bad idea to move computing intensive tasks off-chain.

Earn tokens by posting and answering questions about blockchain!
Karma to eth
YOUR ANSWER