Author

Topic: [ANN] Litecoin - a lite version of Bitcoin. Launched! - page 358. (Read 1467253 times)

donator
Activity: 1218
Merit: 1079
Gerald Davis
The wallet doesn't contain transactions.  Only the blockchain contains transactions.  I assumed he was using the world "wallet" loosely as there are 0 transactions to delete from the wallet.dat.
My testnet wallet, dumped:

(code snipped)

I only included a couple of the first transactions, in reality there are thousands (tens of thousands in my spammed mainnet wallet).

I stand totally and humbly corrected. Smiley I guess the client is doing that is speed up lookups. Essentially caching transactions it located from the blockchain.

If that is the case then there likely is no good way to delete them as client will just re-cache them from the blockchain.

A work around would be to create a new wallet, and transfer coins there.  I would wait until the spam issue is resolved to avoid having new wallet spammed though.
hero member
Activity: 560
Merit: 501
The wallet doesn't contain transactions.  Only the blockchain contains transactions.  I assumed he was using the world "wallet" loosely as there are 0 transactions to delete from the wallet.dat.
My testnet wallet, dumped:
Code:
{
    "bestblock": "b92930452dc16504b182f233c2a5bbb79a29e079c3b057b290a9c26b7c131d2f",
    "defaultkey": "18APg1XBWsTa6zc1gg5HwX5ir4wMew9GFg",
    "keys": [
        // private key magic
    ],
    "names": {
        // address label magic
    },
    "pool": [
        // more address magic
    ],
    "settings": {
        // settings
    },
    "tx": [
        {
            "tx_id": "329da3b0147cb5f3750ef7e7900d42a427e0f15fd6dd649485857aa4479a1c00",
            "tx_k": "027478001c9a47a47a85859464ddd65ff1e027a4420d90e7f70e75f3b57c14b0a39d32",
            "tx_v": "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff070479f4c24e0136ffffffff0100f2052a0100000043410424818533d75bcb3127bc50bdf36a5996e0888ac15d2a81f7fae965d087e4dc881569f6101f96c38522603789caf3457b0148c5575c3ae49fb6279ab86641fc90ac00000000a0bfae7d020cbc9dfdbe46f9284be38833cbd1b7107deed69da6fa6e94f20675000000000000020b66726f6d6163636f756e7400057370656e740000000000007af4c24e0000",
            "txin": [
                {
                    "prevout_hash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "prevout_n": 4294967295,
                    "scriptSig": "0479f4c24e0136",
                    "sequence": 4294967295
                }
            ],
            "txout": [
                {
                    "scriptPubKey": "410424818533d75bcb3127bc50bdf36a5996e0888ac15d2a81f7fae965d087e4dc881569f6101f96c38522603789caf3457b0148c5575c3ae49fb6279ab86641fc90ac",
                    "value": 50.0
                }
            ]
        },
        {
            "tx_id": "a4b9253208911b3550d6041df0519bb0b7e5a399c9a0605d009c949b5e6f5400",
            "tx_k": "02747800546f5e9b949c005d60a0c999a3e5b7b09b51f01d04d650351b91083225b9a4",
            "tx_v": "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff07049c0fc34e0119ffffffff0100f2052a0100000043410459725f9d314e0b11b45743a9e1f81257549a3b3ccf12bd5d57ec41b3e62e46215a792ddb85db7a91443531faeaccf28a18159cb65ee5c0a922516c108b55defaac0000000017b926e7b6601e0c628203ea5884f678cbc860884b6a59b55795eaa9f301a062000000000000020b66726f6d6163636f756e7400057370656e740000000000009e0fc34e0000",
            "txin": [
                {
                    "prevout_hash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "prevout_n": 4294967295,
                    "scriptSig": "049c0fc34e0119",
                    "sequence": 4294967295
                }
            ],
            "txout": [
                {
                    "scriptPubKey": "410459725f9d314e0b11b45743a9e1f81257549a3b3ccf12bd5d57ec41b3e62e46215a792ddb85db7a91443531faeaccf28a18159cb65ee5c0a922516c108b55defaac",
                    "value": 50.0
                }
            ]
        },
        {
            "tx_id": "6fa09be0158c20f9a043014d1297455476937351ca9eaa603227c499c0d22e01",
            "tx_k": "027478012ed2c099c4273260aa9eca51739376544597124d0143a0f9208c15e09ba06f",
            "tx_v": "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0704d7dfb84e0112ffffffff0100f2052a01000000434104d55b50353275a4a033fb220c2732e9b0cc0a685702f219aa8542eaf6aa7f344d96c0c469188eb0998c3f2d622b7b38cf83d861a9222a1ff66eb0c570a278380eac00000000d200322099b704052b2742f147b8b6193133b305c1e90c2ca9140504b59a4f61000000000000020b66726f6d6163636f756e7400057370656e74000000000000dbdfb84e0000",
            "txin": [
                {
                    "prevout_hash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "prevout_n": 4294967295,
                    "scriptSig": "04d7dfb84e0112",
                    "sequence": 4294967295
                }
            ],
            "txout": [
                {
                    "scriptPubKey": "4104d55b50353275a4a033fb220c2732e9b0cc0a685702f219aa8542eaf6aa7f344d96c0c469188eb0998c3f2d622b7b38cf83d861a9222a1ff66eb0c570a278380eac",
                    "value": 50.0
                }
            ]
        },
        {
            "tx_id": "985e4b30904ac3248ad1036d14dc4d90fd5564882fa6dbe9b4fdca0cbabbdc01",
            "tx_k": "02747801dcbbba0ccafdb4e9dba62f886455fd904ddc146d03d18a24c34a90304b5e98",
            "tx_v": "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0704132ec34e012bffffffff0100f2052a0100000043410471b1935d45c44050343620fed71ce6c3c73b6cd0bd9b6bb3432051d4312e9e52ba4afa7b568e87abfc25c0b82abc9ed3742c50a50e1701ffd873b2fd60a791cbac000000008c9cd1a075f625ed684901a30a0a5c279ca955802e46716f02fd9429dc85e69e000000000000020b66726f6d6163636f756e7400057370656e74000000000000162ec34e0000",
            "txin": [
                {
                    "prevout_hash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "prevout_n": 4294967295,
                    "scriptSig": "04132ec34e012b",
                    "sequence": 4294967295
                }
            ],
            "txout": [
                {
                    "scriptPubKey": "410471b1935d45c44050343620fed71ce6c3c73b6cd0bd9b6bb3432051d4312e9e52ba4afa7b568e87abfc25c0b82abc9ed3742c50a50e1701ffd873b2fd60a791cbac",
                    "value": 50.0
                }
            ]
        },
        {
            "tx_id": "a1212b0cc82fe58ebeac17e2a75c2f6b34fecd67cb2237a4557c2c83c2561402",
            "tx_k": "027478021456c2832c7c55a43722cb67cdfe346b2f5ca7e217acbe8ee52fc80c2b21a1",
            "tx_v": "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff070450e7b84e0116ffffffff0100f2052a01000000434104f6e9c8f3fa27bd742ecf672edeca432d9082f069c234816c0acab0d1b83091cb9166a468b9dc44c48715434bf0644f0bdc3c4cf42c624b3eaa7083a1fcf666a7ac0000000036642f200b33b9bb9f842a3d7a3932a3d5cfc20b9552f6c61f5af59ecb16bca7000000000000020b66726f6d6163636f756e7400057370656e7400000000000051e7b84e0000",
            "txin": [
                {
                    "prevout_hash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "prevout_n": 4294967295,
                    "scriptSig": "0450e7b84e0116",
                    "sequence": 4294967295
                }
            ],
            "txout": [
                {
                    "scriptPubKey": "4104f6e9c8f3fa27bd742ecf672edeca432d9082f069c234816c0acab0d1b83091cb9166a468b9dc44c48715434bf0644f0bdc3c4cf42c624b3eaa7083a1fcf666a7ac",
                    "value": 50.0
                }
            ]
        },
        {
            "tx_id": "2d83940aac2a54c23ed831a1e7b35c9609fb1e06bd67545c7f4c36e423c78102",
            "tx_k": "0274780281c723e4364c7f5c5467bd061efb09965cb3e7a131d83ec2542aac0a94832d",
            "tx_v": "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff07043914b94e0165ffffffff0100f2052a01000000434104cf5b4679f2b5fde1b5c1bd1f38035e4be699d144bc5efb06d945ac33f8105a5ee033efcbf4fe1323451114ab95092b20bed490d63fa74963c28e63b04688e38bac000000007e39c0643fdeeb4da994b5bc1d9566c69b732bc24653016e1fcfee57526014fd000000000000020b66726f6d6163636f756e7400057370656e740000000000003b14b94e0000",
            "txin": [
                {
                    "prevout_hash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "prevout_n": 4294967295,
                    "scriptSig": "043914b94e0165",
                    "sequence": 4294967295
                }
            ],
            "txout": [
                {
                    "scriptPubKey": "4104cf5b4679f2b5fde1b5c1bd1f38035e4be699d144bc5efb06d945ac33f8105a5ee033efcbf4fe1323451114ab95092b20bed490d63fa74963c28e63b04688e38bac",
                    "value": 50.0
                }
            ]
        },
        {
            "tx_id": "35b904d108063ee814d595647c61a527a96f57e2f5628e0bcd6df47e7cf33303",
            "tx_k": "0274780333f37c7ef46dcd0b8e62f5e2576fa927a5617c6495d514e83e0608d104b935",
            "tx_v": "01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff0704762bc34e0148ffffffff0100f2052a01000000434104508a33804456e5b89945edd267dadabcc99fd0c67bf061bb089fa6bdbeb98fa7b19a77997d79e89f895a9fabaf9aca9004ecaeb5cb1f1ea8f66112bd290e374bac00000000cfa318fe7d9b74a8be5dc82a5f022c52e78a537e9efb03c9a4e6898acf6814e9000000000000020b66726f6d6163636f756e7400057370656e74000000000000792bc34e0000",
            "txin": [
                {
                    "prevout_hash": "0000000000000000000000000000000000000000000000000000000000000000",
                    "prevout_n": 4294967295,
                    "scriptSig": "04762bc34e0148",
                    "sequence": 4294967295
                }
            ],
            "txout": [
                {
                    "scriptPubKey": "4104508a33804456e5b89945edd267dadabcc99fd0c67bf061bb089fa6bdbeb98fa7b19a77997d79e89f895a9fabaf9aca9004ecaeb5cb1f1ea8f66112bd290e374bac",
                    "value": 50.0
                }
            ]
        }
    ],
    "version": 50004
}
I only included a couple of the first transactions, in reality there are thousands (tens of thousands in my spammed mainnet wallet).
donator
Activity: 1218
Merit: 1079
Gerald Davis
The file size of my wallet is now 320 MB. I could just delete the transactions from the wallet file, just need to figure out how...

You can't delete transactions from the blockchain.  Any block chain currency validates transactions by tracing them back to their genesis.  Any coin you receive was mined from somewhere and has a "history" which allows it to be validated.

Once something is part of the block chain it is there forever.  Block chain pruning can be done but it has to be done at a network not individual level.

(emphasis mine)

The wallet doesn't contain transactions.  Only the blockchain contains transactions.  I assumed he was using the world "wallet" loosely as there are 0 transactions to delete from the wallet.dat.
full member
Activity: 132
Merit: 100
The file size of my wallet is now 320 MB. I could just delete the transactions from the wallet file, just need to figure out how...

So you just want to delete from wallet those spammy 0.0000001 transactions?
Easiest way would be making new wallet and transfer all your coins to it but if you can figure out better way to do it please, share it with us  Wink
full member
Activity: 154
Merit: 102
Bitcoin!
coblee, the option to automatically start litecoin on system startup doesn't seem to be working for me.  Running on Win7.
hero member
Activity: 560
Merit: 501
The file size of my wallet is now 320 MB. I could just delete the transactions from the wallet file, just need to figure out how...


You can't delete transactions from the blockchain.  Any block chain currency validates transactions by tracing them back to their genesis.  Any coin you receive was mined from somewhere and has a "history" which allows it to be validated.

Once something is part of the block chain it is there forever.  Block chain pruning can be done but it has to be done at a network not individual level.
[/quote]

(emphasis mine)
donator
Activity: 1218
Merit: 1079
Gerald Davis
The file size of my wallet is now 320 MB. I could just delete the transactions from the wallet file, just need to figure out how...

You can't delete transactions from the blockchain.  Any block chain currency validates transactions by tracing them back to their genesis.  Any coin you receive was mined from somewhere and has a "history" which allows it to be validated.

Once something is part of the block chain it is there forever.  Block chain pruning can be done but it has to be done at a network not individual level.
sr. member
Activity: 352
Merit: 250
Firstbits: 1m8xa
The file size of my wallet is now 320 MB. I could just delete the transactions from the wallet file, just need to figure out how...
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
I'd certainly say it needs someone to design a nice solution rather than just try fiddling the fees (and you can now make the fee lower Cheesy Cheesy )
My first thought on the subject is similar to your idea Coblee of treating the system as it is - new and thus restricting things to help slow it down.
Also, since txn's are much faster than BTC it probably wouldn't hurt to put certain block restrictions in there that would be considered too extreme in BTC but certainly not in LTC at the moment.
Maybe even restrict the actual size of the block? (getwork would also have to handle that) and have it grow over time so it may not even require adjusting later ...
Just my 2c worth Smiley (I'll also have a think about it myself overnight ...)
donator
Activity: 1654
Merit: 1351
Creator of Litecoin. Cryptocurrency enthusiast.
This is not a big problem with bitcoins, because Bitcoin has a lot of honest transactions that use up the 4kb in the block, so these spammy low priorties transactions will take forever to get included in a block. So a similar attack on bitcoin is pointless. Since Litecoin is a new chain with not that many honest transactions, it's silly that we are forced to grow at 2.3mb/day by this Litecoin-hater.

I will need to think of a way to combat this. The first thing that comes to mind is to just reduce the 4k exemption for free transactions per day to something much smaller. Maybe instead of allowing 13 of these transactions, we only allow a few to get included in a block. I can reduce the 4k exemption to 1k. This would reduce the chain size increase from 2.3mb/day to 575kb/day. The downside of course is that free transactions might take longer to get written into blocks. I would have to double check, but I don't think the client will let you create transactions without enough fees. So this only applies to people that modify their client to do 0 fees. Let me know what you guys think.
I guess you could do that and then when honest transactions become more numerous increase the exemption again.

That's my thought also. And since we find 4 times as many blocks as Bitcoin, the exemption in terms of time is about the same: 4kb per 10 mins.

2MB/day, thats less than 1GB per year, nothing I personally worry about. I'm sure he'll loose interest soon.

Bitcoin has been around for more than 2 years now and its chain size is still only ~700mb. If we grow 1GB a year, it's not that bad but forcing everyone to download 1GB of mostly useless transactions is stupid.
sr. member
Activity: 392
Merit: 250
2MB/day, thats less than 1GB per year, nothing I personally worry about. I'm sure he'll loose interest soon.
Yeah, sure, it's not as if hard drives were 3 times as expensive now as a few months ago...
hero member
Activity: 525
Merit: 500
2MB/day, thats less than 1GB per year, nothing I personally worry about. I'm sure he'll loose interest soon.
sr. member
Activity: 392
Merit: 250
This is not a big problem with bitcoins, because Bitcoin has a lot of honest transactions that use up the 4kb in the block, so these spammy low priorties transactions will take forever to get included in a block. So a similar attack on bitcoin is pointless. Since Litecoin is a new chain with not that many honest transactions, it's silly that we are forced to grow at 2.3mb/day by this Litecoin-hater.

I will need to think of a way to combat this. The first thing that comes to mind is to just reduce the 4k exemption for free transactions per day to something much smaller. Maybe instead of allowing 13 of these transactions, we only allow a few to get included in a block. I can reduce the 4k exemption to 1k. This would reduce the chain size increase from 2.3mb/day to 575kb/day. The downside of course is that free transactions might take longer to get written into blocks. I would have to double check, but I don't think the client will let you create transactions without enough fees. So this only applies to people that modify their client to do 0 fees. Let me know what you guys think.
I guess you could do that and then when honest transactions become more numerous increase the exemption again.
donator
Activity: 1654
Merit: 1351
Creator of Litecoin. Cryptocurrency enthusiast.
Still happening: block: 34123, 5 minutes ago ...
(and http://explorer.liteco.in/ gives a bad gateway error so I can't give a link)

Edit: the block value is 50.22050000 so I guess they don't mind paying the fee.
Thus the higher fee (higher than bitcoin) isn't completely successful.
Block size 412,072 bytes (using my own block explorer I wrote)

It's still happening because some miners have not upgraded and they are happily include the spammer's transaction that don't include enough fees.
If you look at http://blockexplorer.sytes.net/block/9171504e9427f74c02a0b2ad6167832f974ee2959135025a8407b7e9f4a74cef you will see that his transactions are being charged less than 0.1 ltc.
If he was following the new fee rules, we would have need to pay 200x the fees he paid, or 200 * 0.2205 = 44.1 ltc.
So until enough people start to use the new code, you will still see these transactions creep in. Of course, if he had the resources, he could find his own blocks and pay no fees, but he's not doing that right now.

The other disturbing thing I'm seeing is that after the fix has been released, he started sending 2 ltc to himself and maxing out on the 4kb of free transactions per blocks. So you see those blocks with 14 transactions: http://blockexplorer.sytes.net/chain/Litecoin?count=500
13 of these transactions + the generate transaction will max out the amount of free transactions allowed in the block. I know it's the same guy because I followed his transaction back and saw that the same coins were used in both of these attacks. Just look at this transaction: http://blockexplorer.sytes.net/tx/456af81d3bfa3d92ca03e04066aaceca64babeec961dd1474026706eaa4459d9
Some of those coins were used in the 2 ltc spam and the rest were used in the 0.00000001 ltc spams. This guy is really annoying since he seems to have a deep knowledge about how to take advantage of the transaction fee rules.

From the wiki:
Quote
If the blocksize is over 4kB, free transactions in the above rules are only allowed if the transaction's priority is above a certain level.
So 14 of these transactions are costing him nothing b/c he's sending them to himself. This is not as bad as the first attack, but it will still grow the chain by about 2.3mb a day. (4kb * 576 blocks)
This is not a big problem with bitcoins, because Bitcoin has a lot of honest transactions that use up the 4kb in the block, so these spammy low priorties transactions will take forever to get included in a block. So a similar attack on bitcoin is pointless. Since Litecoin is a new chain with not that many honest transactions, it's silly that we are forced to grow at 2.3mb/day by this Litecoin-hater.

I will need to think of a way to combat this. The first thing that comes to mind is to just reduce the 4k exemption for free transactions per day to something much smaller. Maybe instead of allowing 13 of these transactions, we only allow a few to get included in a block. I can reduce the 4k exemption to 1k. This would reduce the chain size increase from 2.3mb/day to 575kb/day. The downside of course is that free transactions might take longer to get written into blocks. I would have to double check, but I don't think the client will let you create transactions without enough fees. So this only applies to people that modify their client to do 0 fees. Let me know what you guys think.
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
Still happening: block: 34123, 5 minutes ago ...
(and http://explorer.liteco.in/ gives a bad gateway error so I can't give a link)

Edit: the block value is 50.22050000 so I guess they don't mind paying the fee.
Thus the higher fee (higher than bitcoin) isn't completely successful.
Block size 412,072 bytes (using my own block explorer I wrote)
donator
Activity: 1654
Merit: 1351
Creator of Litecoin. Cryptocurrency enthusiast.
Thanks. I hope it's clear why we need this transaction fee. Since this is a p2p network, sending large transactions (in terms of bytes) will add strain to the network to propagate those transactions and to store them. Look at how much the block database has grown from these spam transactions. So the increased fees is to combat that. If you want to waste other people's resources, you can but you need to pay for it. And most transactions will still be free.

But isn't that the wrong solution? Isn't the purpose of any crypto-currencies to be successful and attract a lot of transactions? Having a lot of transactions (of course, not spam, but that's irrelevant) should be the target, am I correct? If so, then arbitrarily forcing their number down is the wrong action...

I was hoping to see some creative development in the other direction - having a lot of transactions while maintaining a small footprint on the blocksize and network load.

Lots of transactions is not bad. Large transactions that sends small amounts of coins to lots of outputs is bad. The fix is not arbitrarily forcing the number of transactions down. It is only going to incur a fee on low priority transactions, which are those that have lots of inputs and/or outputs and uses small amount of coins that don't have a lot of confirms. Again, please read the wiki: https://en.bitcoin.it/wiki/Transaction_fees
sr. member
Activity: 252
Merit: 250
Thanks. I hope it's clear why we need this transaction fee. Since this is a p2p network, sending large transactions (in terms of bytes) will add strain to the network to propagate those transactions and to store them. Look at how much the block database has grown from these spam transactions. So the increased fees is to combat that. If you want to waste other people's resources, you can but you need to pay for it. And most transactions will still be free.

But isn't that the wrong solution? Isn't the purpose of any crypto-currencies to be successful and attract a lot of transactions? Having a lot of transactions (of course, not spam, but that's irrelevant) should be the target, am I correct? If so, then arbitrarily forcing their number down is the wrong action...

I was hoping to see some creative development in the other direction - having a lot of transactions while maintaining a small footprint on the blocksize and network load.
sr. member
Activity: 309
Merit: 250
Thanks. I hope it's clear why we need this transaction fee. Since this is a p2p network, sending large transactions (in terms of bytes) will add strain to the network to propagate those transactions and to store them. Look at how much the block database has grown from these spam transactions. So the increased fees is to combat that. If you want to waste other people's resources, you can but you need to pay for it. And most transactions will still be free.

Congrats to that quick decision combined with a new client.

Now its much more expensive to spam around and the "normal" transaction stay cheap as before.

That was the point to be solved ---> excellent work!
donator
Activity: 1654
Merit: 1351
Creator of Litecoin. Cryptocurrency enthusiast.
Let me shorten that for you:
most people don't even understand that the fee is not a static fee that's applied to every transaction.
Quote from: wiki
Transaction fees may be included with any transfer of bitcoins from one address to another. At the moment, many transactions are typically processed in a way where no fee is expected at all, but for transactions which draw coins from many bitcoin addresses and therefore have a large data size, a small transaction fee is usually expected.

The transaction fee is processed by and received by the bitcoin miner. When a new bitcoin block is generated with a successful hash, the information for all of the transactions is included with the block and all transaction fees are collected by that user creating the block, who is free to assign those fees to himself.

0.1 LTC fee per kilobyte of transaction, but:
- If the blocksize (size of all transactions currently waiting to be included in a block) is less than 27 kB, transactions are free.
- If the blocksize is more than 250 kB, transactions get increasingly more expensive as the blocksize approaches the limit of 500 kB. Sending a transaction when the blocksize is 400 kB will cost 5 times the normal amount; sending when it's 499 kB will cost 500x, etc.

Transactions within each fee tier are prioritized based on several factors. Most importantly, a transaction has more priority if the coins it is using have a lot of confirmations. Someone spamming the network will almost certainly be re-using the same coins, which will lower the priority of their transactions.

Thanks. I hope it's clear why we need this transaction fee. Since this is a p2p network, sending large transactions (in terms of bytes) will add strain to the network to propagate those transactions and to store them. Look at how much the block database has grown from these spam transactions. So the increased fees is to combat that. If you want to waste other people's resources, you can but you need to pay for it. And most transactions will still be free.
full member
Activity: 132
Merit: 100
Let me shorten that for you:
most people don't even understand that the fee is not a static fee that's applied to every transaction.
Quote from: wiki
Transaction fees may be included with any transfer of bitcoins from one address to another. At the moment, many transactions are typically processed in a way where no fee is expected at all, but for transactions which draw coins from many bitcoin addresses and therefore have a large data size, a small transaction fee is usually expected.

The transaction fee is processed by and received by the bitcoin miner. When a new bitcoin block is generated with a successful hash, the information for all of the transactions is included with the block and all transaction fees are collected by that user creating the block, who is free to assign those fees to himself.

0.1 LTC fee per kilobyte of transaction, but:
- If the blocksize (size of all transactions currently waiting to be included in a block) is less than 27 kB, transactions are free.
- If the blocksize is more than 250 kB, transactions get increasingly more expensive as the blocksize approaches the limit of 500 kB. Sending a transaction when the blocksize is 400 kB will cost 5 times the normal amount; sending when it's 499 kB will cost 500x, etc.

Transactions within each fee tier are prioritized based on several factors. Most importantly, a transaction has more priority if the coins it is using have a lot of confirmations. Someone spamming the network will almost certainly be re-using the same coins, which will lower the priority of their transactions.
Jump to: