Bitcoin Forum
December 15, 2024, 04:31:48 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Transaction Fee to other Wallet  (Read 262 times)
MaximC (OP)
Jr. Member
*
Offline Offline

Activity: 43
Merit: 2


View Profile
April 09, 2016, 04:10:37 PM
 #1

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
achow101
Staff
Legendary
*
Offline Offline

Activity: 3570
Merit: 6927


Just writing some code


View Profile WWW
April 09, 2016, 04:14:18 PM
 #2

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.

MaximC (OP)
Jr. Member
*
Offline Offline

Activity: 43
Merit: 2


View Profile
April 09, 2016, 04:31:33 PM
 #3

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?
achow101
Staff
Legendary
*
Offline Offline

Activity: 3570
Merit: 6927


Just writing some code


View Profile WWW
April 09, 2016, 04:55:04 PM
 #4

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.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!