func (l *scoreledger) AddToReceivedBytes(n int) {
	l.lock.Lock()
	defer l.lock.Unlock()
	l.exchangeCount++
	l.lastExchange = l.clock.Now()
	l.bytesRecv += uint64(n)
}
Increments the received counter.
package decision
import (
	"sync"
	"time"
	"github.com/benbjohnson/clock"
	peer "github.com/libp2p/go-libp2p-core/peer"
)
const (
	shortTermAlpha = 0.5
	longTermAlpha = 0.05
	shortTerm = 10 * time.Second
	longTermRatio = 10
	longTermScore  = 10  
	shortTermScore = 10  
)
type scoreledger struct {
	partner peer.ID
	bytesSent uint64
	bytesRecv uint64
	lastExchange time.Time
	shortScore, longScore float64
	score int
	exchangeCount uint64
	lock sync.RWMutex
	clock clock.Clock
}
type Receipt struct {
	Peer      string
	Value     float64
	Sent      uint64
	Recv      uint64
	Exchanged uint64
}
func (l *scoreledger) AddToSentBytes(n int) {
	l.lock.Lock()
	defer l.lock.Unlock()
	l.exchangeCount++
	l.lastExchange = l.clock.Now()
	l.bytesSent += uint64(n)
}