stratisproject / StratisCore

MIT License
42 stars 49 forks source link

lock balance on certain address #257

Open dokrates opened 5 years ago

dokrates commented 5 years ago

Dear Stratis team.

Is there a way to do an improvement for future Stratis Core version, which allows you to create a way to lock certain amount of stratis in an address inside Stratis core. So whenever you send coins, it doesn't splits to change addresses from this certain address "locked" ?. It will be very usefull for the masternodes users, specially this times, when we want to send usually from mainchain to sidechain cirrus just for testing purposes. Because if you have low balance like 12k stratis, and you want to send 10 stratis to cirrus, it could split in 5k, which will invalidate MN to vote and mine.

Thank you very much for your hard work, love stratis.

DemonRx commented 5 years ago

In other words having the same functionality as the C++ counterpart in masternode coins known as "coin control", which also automatically lock the masternode's collateral inputs from being staked/sent out when selecting coins to transact with. Example here with ganjacoin (masternode coin): Where you see "toggle lock state".

There is also a coin setting for the *.conf file that is mnconflock=1 that locks any inputs that are listed in masternode.conf. Statis Core is ofc a different setup. so not sure the implementation of it with stratis.

Screenshot from 2019-07-20 05-57-18

dev0tion commented 5 years ago

This could be interesting, I've passed it along to the team for them to look at.