Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: MaximC on April 09, 2016, 04:10:37 PM



Title: Transaction Fee to other Wallet
Post by: MaximC on April 09, 2016, 04:10:37 PM
Is it possible change the code to:

With any transaction is sent fee to specific wallet.
I want create altcoin with this functionalitty.

Graphically:

Wallet ─ Transaction ──┬──  amount ─ recipient
                                ├──  fee ─ other wallet
                                └──  fee ─ miners

Can you send me little information - how can be this done in open code?

Thank you


Title: Re: Transaction Fee to other Wallet
Post by: achow101 on April 09, 2016, 04:14:18 PM
You can create a client which always creates an output to a specified address. You could also then make it a consensus rule for the altcoin that requires that every transaction must have an output to that address otherwise the transaction is invalid.


Title: Re: Transaction Fee to other Wallet
Post by: MaximC on April 09, 2016, 04:31:33 PM
You can create a client which always creates an output to a specified address. You could also then make it a consensus rule for the altcoin that requires that every transaction must have an output to that address otherwise the transaction is invalid.

Good idea, thanks.
Can you be more specific in second point?


Title: Re: Transaction Fee to other Wallet
Post by: achow101 on April 09, 2016, 04:55:04 PM
You can create a client which always creates an output to a specified address. You could also then make it a consensus rule for the altcoin that requires that every transaction must have an output to that address otherwise the transaction is invalid.

Good idea, thanks.
Can you be more specific in second point?
In your altcoin, you can add to the validation rules a rule that requires that every single transaction must have that output otherwise the transaction is rejected as invalid. Any blocks containing those invalid transactions are also rejected as invalid. This means that changing the rule could cause a fork and anyone who doesn't follow that rule is producing invalid transactions.