Now he threw away all the silver with which he had filled his pockets and knapsack , and filled them with gold instead -- yes , all his pockets , his knapsack , cap and boots even , so that he could hardly walk .